mirror of https://github.com/M66B/FairEmail.git
Reset zoom om compact view change
This commit is contained in:
parent
027366f2a5
commit
4d9330e60b
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue