mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-23 08:14:45 +00:00
Disable auto optimize on exempting account
This commit is contained in:
parent
43cc8359bc
commit
be5692ffd7
1 changed files with 5 additions and 0 deletions
|
@ -705,6 +705,11 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
|
|||
long id = args.getLong("id");
|
||||
boolean exempted = args.getBoolean("exempted");
|
||||
|
||||
if (exempted) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
prefs.edit().remove("auto_optimize").apply();
|
||||
}
|
||||
|
||||
DB db = DB.getInstance(context);
|
||||
db.account().setAccountPollExempted(id, exempted);
|
||||
|
||||
|
|
Loading…
Reference in a new issue