diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsBehaviorFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsBehaviorFragment.java index 93ccd17fa..62c32d8fb 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsBehaviorFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsBehaviorFragment.java @@ -176,6 +176,8 @@ public class SettingsBehaviorFragment extends BaseSettingsFragment impleme GlobalUserPreferences.allowRemoteLoading=remoteLoadingItem.checked; GlobalUserPreferences.save(); AccountLocalPreferences lp=getLocalPrefs(); + boolean restartPlease=lp.showBoosts!=showBoostsItem.checked + || lp.showReplies!=showRepliesItem.checked; lp.showBoosts=showBoostsItem.checked; lp.showReplies=showRepliesItem.checked; lp.save(); @@ -186,6 +188,7 @@ public class SettingsBehaviorFragment extends BaseSettingsFragment impleme s.preferences.postingDefaultLanguage=newPostLanguage.language.getLanguage(); s.savePreferencesLater(); } + if(restartPlease) getActivity().recreate(); } @Override