INNER CODE UNIT · Kotlin

XposedPrefsSyncApp

1812z/HyperIsland · android/app/src/main/kotlin/io/github/hyperisland/XposedPrefsSyncApp.kt:20

class XposedPrefsSyncApp : Application(), XposedServiceHelper.OnServiceListener {

    private val configPrefs: SharedPreferences by lazy {
        getSharedPreferences(LEGACY_PREFS_NAME, Context.MODE_PRIVATE)
    }

    @Volatile
    private var xposedService: XposedService? = null

    private val syncLock = Any()

    private val configPrefsListener = SharedPreferences.OnSharedPreferenceChangeListener { prefs, key ->
        syncKeyToRemote(prefs, key)
    }

    override fun onCreate() {
        super.onCreate()
        AppLocaleController.apply(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…