You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Updated deprecation statements and moved components init after attaching base context
This needed to be done in order to get the Koin working as it requires injection before calling onCreate
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.topjohnwu.magisk.di
|
||||
|
||||
import android.content.Context
|
||||
import androidx.preference.PreferenceManager
|
||||
import com.skoumal.teanity.rxbus.RxBus
|
||||
import com.topjohnwu.magisk.App
|
||||
import org.koin.dsl.module
|
||||
@@ -15,4 +16,5 @@ val applicationModule = module {
|
||||
get<App>().protectedContext
|
||||
.getSharedPreferences("su_timeout", 0)
|
||||
}
|
||||
single { PreferenceManager.getDefaultSharedPreferences(get<App>().protectedContext) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user