Skip to content

Commit d2dd722

Browse files
committed
android: change device bypass sharedPref key
1 parent 67fc93b commit d2dd722

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

android/app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ android {
3030
applicationId = "me.kavishdevar.librepods"
3131
minSdk = 33
3232
targetSdk = 37
33-
versionCode = 36
33+
versionCode = 37
3434
versionName = versionName
3535
}
3636
buildTypes {

android/app/src/main/java/me/kavishdevar/librepods/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ fun Main() {
310310
showPlayBypassVisible.value = true
311311
} else {
312312
sharedPreferences.edit {
313-
putBoolean("bypass_device_check", true)
313+
putBoolean("bypass_device_check.v2", true)
314314
val intent = Intent(context, MainActivity::class.java)
315315
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK)
316316
context.startActivity(intent)
@@ -333,7 +333,7 @@ fun Main() {
333333
onConfirm = {
334334
showPlayBypassVisible.value = false
335335
sharedPreferences.edit {
336-
putBoolean("bypass_device_check", true)
336+
putBoolean("bypass_device_check.v2", true)
337337
val intent = Intent(context, MainActivity::class.java)
338338
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK)
339339
context.startActivity(intent)

android/app/src/main/java/me/kavishdevar/librepods/utils/RootlessSupport.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ fun isSupported(sharedPreferences: SharedPreferences): Boolean {
3838
} else if (isOppoOrOnePlus) {
3939
return Build.VERSION.SDK_INT >= 36
4040
}
41-
return sharedPreferences.getBoolean("bypass_device_check", false)
41+
return sharedPreferences.getBoolean("bypass_device_check.v2", false)
4242
}

0 commit comments

Comments
 (0)