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
1 changed files with 3 additions and 1 deletions

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