mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 17:43:18 +02:00
Disable Android 12 doze requirement
This commit is contained in:
@@ -196,7 +196,7 @@ public class ApplicationEx extends Application
|
||||
|
||||
DisconnectBlacklist.init(this);
|
||||
|
||||
if (!Helper.isOptimizing12(this)) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) {
|
||||
ServiceSynchronize.watchdog(this);
|
||||
ServiceSend.watchdog(this);
|
||||
}
|
||||
@@ -521,9 +521,6 @@ public class ApplicationEx extends Application
|
||||
} else if (version < 1721) {
|
||||
if (!prefs.contains("discard_delete"))
|
||||
editor.putBoolean("discard_delete", false);
|
||||
} else if (version < 1732) {
|
||||
if (Helper.isOptimizing12(context))
|
||||
editor.remove("setup_reminder");
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG)
|
||||
|
||||
@@ -434,7 +434,7 @@ public class Helper {
|
||||
}
|
||||
|
||||
static boolean isOptimizing12(Context context) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S)
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S || true)
|
||||
return false;
|
||||
|
||||
Boolean ignoring = Helper.isIgnoringOptimizations(context);
|
||||
|
||||
Reference in New Issue
Block a user