Disable auto optimize on exempting account

pull/209/head
M66B 2 years ago
parent 43cc8359bc
commit be5692ffd7

@ -705,6 +705,11 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
long id = args.getLong("id"); long id = args.getLong("id");
boolean exempted = args.getBoolean("exempted"); boolean exempted = args.getBoolean("exempted");
if (exempted) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
prefs.edit().remove("auto_optimize").apply();
}
DB db = DB.getInstance(context); DB db = DB.getInstance(context);
db.account().setAccountPollExempted(id, exempted); db.account().setAccountPollExempted(id, exempted);

Loading…
Cancel
Save