mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
Prevent using background service on Android O+
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user