mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 08:33:37 +02:00
Debug: screen on / Android 14
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user