Skip to content

Commit

Permalink
Fixed saving of resolution presets
Browse files Browse the repository at this point in the history
  • Loading branch information
woesss committed Jul 14, 2024
1 parent 6d7f28f commit cc87cf5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,7 @@ private void addResolutionToPresets() {
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
Set<String> set = preferences.getStringSet("ResolutionsPreset", null);
Set<String> presets = set == null ? new HashSet<>(1) : new HashSet<>(set);
presets.add(size.toString());
preferences.edit().putStringSet("ResolutionsPreset", presets).apply();
Toast.makeText(this, getString(R.string.saved, size.toString()), Toast.LENGTH_SHORT).show();
}
Expand Down

0 comments on commit cc87cf5

Please sign in to comment.