mirror of https://github.com/M66B/FairEmail.git
Clear measurements on text size changes
This commit is contained in:
parent
2a5ce4f2b8
commit
1b5970a483
|
@ -4109,6 +4109,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
int zoom = prefs.getInt("view_zoom", compact ? 0 : 1);
|
||||
zoom = ++zoom % 3;
|
||||
prefs.edit().putInt("view_zoom", zoom).apply();
|
||||
clearMeasurements();
|
||||
adapter.setZoom(zoom);
|
||||
}
|
||||
|
||||
|
@ -4122,9 +4123,17 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
|
||||
adapter.setCompact(compact);
|
||||
adapter.setZoom(zoom);
|
||||
clearMeasurements();
|
||||
getActivity().invalidateOptionsMenu();
|
||||
}
|
||||
|
||||
private void clearMeasurements() {
|
||||
scales.clear();
|
||||
sizes.clear();
|
||||
heights.clear();
|
||||
positions.clear();
|
||||
}
|
||||
|
||||
private void onMenuSelectLanguage() {
|
||||
Bundle args = new Bundle();
|
||||
args.putLong("account", account);
|
||||
|
|
Loading…
Reference in New Issue