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

@@ -351,6 +351,9 @@ public class ApplicationEx extends Application implements SharedPreferences.OnSh
editor.putBoolean("beige", false);
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
editor.remove("background_service");
if (version < BuildConfig.VERSION_CODE)
editor.putInt("previous_version", version);
editor.putInt("version", BuildConfig.VERSION_CODE);