Adding needAppRestart to reduceMotion setting

This commit is contained in:
sk 2023-01-16 19:23:39 +01:00 committed by LucasGGamerM
parent 4db87feec4
commit 1c1d1772a3
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ public class SettingsFragment extends MastodonToolbarFragment{
items.add(new SwitchItem(R.string.sk_settings_reduce_motion, R.drawable.ic_fluent_star_emphasis_24_regular, GlobalUserPreferences.reduceMotion, i->{
GlobalUserPreferences.reduceMotion=i.checked;
GlobalUserPreferences.save();
needAppRestart=true;
}));
items.add(new ButtonItem(R.string.sk_settings_color_palette, R.drawable.ic_fluent_color_24_regular, b->{
PopupMenu popupMenu=new PopupMenu(getActivity(), b, Gravity.CENTER_HORIZONTAL);