Debug: screen on / Android 14

This commit is contained in:
M66B
2023-06-08 13:17:03 +02:00
parent 268609570a
commit 2f1199674c
3 changed files with 761 additions and 2 deletions

View File

@@ -5237,7 +5237,8 @@ class Core {
if (redacted)
notify_summary = true;
if (notify_screen_on &&
!(Build.VERSION.SDK_INT <= Build.VERSION_CODES.TIRAMISU ||
!(BuildConfig.DEBUG ||
Build.VERSION.SDK_INT <= Build.VERSION_CODES.TIRAMISU ||
Helper.hasPermission(context, "android.permission.TURN_SCREEN_ON")))
notify_screen_on = false;

View File

@@ -502,7 +502,8 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
});
grpScreenOn.setVisibility(
Build.VERSION.SDK_INT <= Build.VERSION_CODES.TIRAMISU ||
BuildConfig.DEBUG ||
Build.VERSION.SDK_INT <= Build.VERSION_CODES.TIRAMISU ||
hasPermission("android.permission.TURN_SCREEN_ON")
? View.VISIBLE : View.GONE);
swNotifyScreenOn.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {