Prevent using background service on Android O+

This commit is contained in:
M66B
2020-10-12 08:25:09 +02:00
parent f8afd831d9
commit 9b1348a634
3 changed files with 8 additions and 1 deletions

View File

@@ -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;