mirror of
https://github.com/awfixers-stuff/OwnDroid.git
synced 2026-03-23 19:15:58 +00:00
Fix API
Add SharedPrefs helper class to access shared preferences
This commit is contained in:
@@ -74,8 +74,7 @@ class Receiver : DeviceAdminReceiver() {
|
||||
|
||||
override fun onTransferOwnershipComplete(context: Context, bundle: PersistableBundle?) {
|
||||
super.onTransferOwnershipComplete(context, bundle)
|
||||
val sp = context.getSharedPreferences("data", Context.MODE_PRIVATE)
|
||||
sp.edit().putBoolean("dhizuku", false).apply()
|
||||
SharedPrefs(context).dhizuku = false
|
||||
}
|
||||
|
||||
override fun onLockTaskModeEntering(context: Context, intent: Intent, pkg: String) {
|
||||
|
||||
Reference in New Issue
Block a user