Reset zoom om compact view change

This commit is contained in:
M66B 2019-01-18 19:45:46 +00:00
parent 027366f2a5
commit 4d9330e60b
1 changed files with 5 additions and 0 deletions

View File

@ -1675,7 +1675,12 @@ public class FragmentMessages extends FragmentBase {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
boolean compact = !prefs.getBoolean("compact", false);
prefs.edit().putBoolean("compact", compact).apply();
int zoom = (compact ? 0 : 1);
prefs.edit().putInt("zoom", zoom).apply();
adapter.setCompact(compact);
adapter.setZoom(zoom);
getActivity().invalidateOptionsMenu();
}