1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 02:37:16 +00:00

Apply message text zoom to composer too

This commit is contained in:
M66B 2020-07-06 15:01:35 +02:00
parent 7a8916f141
commit 1de4dee732

View file

@ -1363,9 +1363,11 @@ public class FragmentCompose extends FragmentBase {
}
private void setZoom() {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
int message_zoom = prefs.getInt("message_zoom", 100);
float textSize = Helper.getTextSize(getContext(), zoom);
if (textSize != 0) {
etBody.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
etBody.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize * message_zoom / 100f);
tvReference.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
}
}