Fixed setting mobile updates programmatically

This commit is contained in:
ByteHamster 2019-08-28 20:16:59 +02:00
parent caf6f097a7
commit 2a24fa849e
1 changed files with 2 additions and 2 deletions

View File

@ -415,9 +415,9 @@ public class UserPreferences {
defaultValue.add("images");
Set<String> allowed = prefs.getStringSet(PREF_MOBILE_UPDATE, defaultValue);
if (allow) {
allowed.remove(type);
} else {
allowed.add(type);
} else {
allowed.remove(type);
}
prefs.edit().putStringSet(PREF_MOBILE_UPDATE, allowed).apply();
}