restart when show replies/boosts changes
closes sk22#879
This commit is contained in:
@@ -176,6 +176,8 @@ public class SettingsBehaviorFragment extends BaseSettingsFragment<Void> impleme
|
|||||||
GlobalUserPreferences.allowRemoteLoading=remoteLoadingItem.checked;
|
GlobalUserPreferences.allowRemoteLoading=remoteLoadingItem.checked;
|
||||||
GlobalUserPreferences.save();
|
GlobalUserPreferences.save();
|
||||||
AccountLocalPreferences lp=getLocalPrefs();
|
AccountLocalPreferences lp=getLocalPrefs();
|
||||||
|
boolean restartPlease=lp.showBoosts!=showBoostsItem.checked
|
||||||
|
|| lp.showReplies!=showRepliesItem.checked;
|
||||||
lp.showBoosts=showBoostsItem.checked;
|
lp.showBoosts=showBoostsItem.checked;
|
||||||
lp.showReplies=showRepliesItem.checked;
|
lp.showReplies=showRepliesItem.checked;
|
||||||
lp.save();
|
lp.save();
|
||||||
@@ -186,6 +188,7 @@ public class SettingsBehaviorFragment extends BaseSettingsFragment<Void> impleme
|
|||||||
s.preferences.postingDefaultLanguage=newPostLanguage.language.getLanguage();
|
s.preferences.postingDefaultLanguage=newPostLanguage.language.getLanguage();
|
||||||
s.savePreferencesLater();
|
s.savePreferencesLater();
|
||||||
}
|
}
|
||||||
|
if(restartPlease) getActivity().recreate();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user