mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 18:59:01 +00:00
Reset zoom om compact view change
This commit is contained in:
parent
027366f2a5
commit
4d9330e60b
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue