1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-29 11:15:51 +00:00

Reset zoom om compact view change

This commit is contained in:
M66B 2019-01-18 19:45:46 +00:00
parent 027366f2a5
commit 4d9330e60b

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();
}