Refactoring: schedule exact alarm

This commit is contained in:
M66B
2022-03-20 09:47:12 +01:00
parent 61e9407f62
commit 9074047eb0
11 changed files with 46 additions and 144 deletions

View File

@@ -484,10 +484,9 @@ public class FragmentOptions extends FragmentBase {
boolean setup_reminder = prefs.getBoolean("setup_reminder", true);
boolean hasPermissions = hasPermission(Manifest.permission.READ_CONTACTS);
Boolean isIgnoring = Helper.isIgnoringOptimizations(getContext());
boolean isIgnoring = !Boolean.FALSE.equals(Helper.isIgnoringOptimizations(getContext()));
if (!setup_reminder ||
(hasPermissions && (isIgnoring == null || isIgnoring)))
if (!setup_reminder || (hasPermissions && isIgnoring))
super.finish();
else {
FragmentDialogStill fragment = new FragmentDialogStill();