mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-05-14 00:16:54 +00:00
android: fix bypass on pixels on older A16 version; also check Xposed scope for compatibility
This commit is contained in:
@@ -223,7 +223,7 @@ class MainActivity : ComponentActivity() {
|
|||||||
fun Main() {
|
fun Main() {
|
||||||
val context = LocalContext.current
|
val context = LocalContext.current
|
||||||
val sharedPreferences = context.getSharedPreferences("settings", MODE_PRIVATE)
|
val sharedPreferences = context.getSharedPreferences("settings", MODE_PRIVATE)
|
||||||
if (!isSupported(sharedPreferences)) {
|
if (!isSupported(sharedPreferences) && !XposedState.bluetoothScopeEnabled) {
|
||||||
val showDialog = remember { mutableStateOf(false) }
|
val showDialog = remember { mutableStateOf(false) }
|
||||||
val showPlayBypassVisible = remember { mutableStateOf(false) }
|
val showPlayBypassVisible = remember { mutableStateOf(false) }
|
||||||
val hazeState = rememberHazeState()
|
val hazeState = rememberHazeState()
|
||||||
@@ -323,10 +323,10 @@ fun Main() {
|
|||||||
} else {
|
} else {
|
||||||
sharedPreferences.edit {
|
sharedPreferences.edit {
|
||||||
putBoolean("bypass_device_check.v2", 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)
|
|
||||||
}
|
}
|
||||||
|
val intent = Intent(context, MainActivity::class.java)
|
||||||
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK)
|
||||||
|
context.startActivity(intent)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onDismiss = {
|
onDismiss = {
|
||||||
|
|||||||
Reference in New Issue
Block a user