mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Android 12 foreground restrictions
This commit is contained in:
@@ -174,12 +174,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
|
||||
}
|
||||
|
||||
boolean isExempted(Context context) {
|
||||
if (Helper.isTarget(context, Build.VERSION_CODES.R)) {
|
||||
Boolean ignoring = Helper.isIgnoringOptimizations(context);
|
||||
if (ignoring != null && !ignoring)
|
||||
return false;
|
||||
}
|
||||
return this.poll_exempted;
|
||||
return (!Helper.isOptimizing12(context) && this.poll_exempted);
|
||||
}
|
||||
|
||||
String getProtocol() {
|
||||
|
||||
Reference in New Issue
Block a user