mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-25 15:10:47 +01:00
Prevent using background service on Android O+
This commit is contained in:
@@ -958,6 +958,10 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
||||
if ("alert_once".equals(key) && !Log.isXiaomi())
|
||||
continue;
|
||||
|
||||
if ("background_service".equals(key) &&
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
|
||||
continue;
|
||||
|
||||
if (key != null && key.startsWith("widget."))
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user