mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-04-29 17:44:36 +00:00
android: change device bypass sharedPref key
This commit is contained in:
@@ -310,7 +310,7 @@ fun Main() {
|
||||
showPlayBypassVisible.value = true
|
||||
} else {
|
||||
sharedPreferences.edit {
|
||||
putBoolean("bypass_device_check", true)
|
||||
putBoolean("bypass_device_check.v2", true)
|
||||
val intent = Intent(context, MainActivity::class.java)
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK)
|
||||
context.startActivity(intent)
|
||||
@@ -333,7 +333,7 @@ fun Main() {
|
||||
onConfirm = {
|
||||
showPlayBypassVisible.value = false
|
||||
sharedPreferences.edit {
|
||||
putBoolean("bypass_device_check", true)
|
||||
putBoolean("bypass_device_check.v2", true)
|
||||
val intent = Intent(context, MainActivity::class.java)
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK)
|
||||
context.startActivity(intent)
|
||||
|
||||
@@ -38,5 +38,5 @@ fun isSupported(sharedPreferences: SharedPreferences): Boolean {
|
||||
} else if (isOppoOrOnePlus) {
|
||||
return Build.VERSION.SDK_INT >= 36
|
||||
}
|
||||
return sharedPreferences.getBoolean("bypass_device_check", false)
|
||||
return sharedPreferences.getBoolean("bypass_device_check.v2", false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user