mirror of https://github.com/M66B/FairEmail.git
Limit text zoom
This commit is contained in:
parent
51bcae1547
commit
6be9129a75
|
@ -830,6 +830,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
float factor = detector.getScaleFactor();
|
float factor = detector.getScaleFactor();
|
||||||
float size = tvBody.getTextSize() * factor;
|
float size = tvBody.getTextSize() * factor;
|
||||||
float scale = (textSize == 0 ? 1.0f : size / (textSize * message_zoom / 100f));
|
float scale = (textSize == 0 ? 1.0f : size / (textSize * message_zoom / 100f));
|
||||||
|
if (scale > 10)
|
||||||
|
return true;
|
||||||
|
|
||||||
// Text size
|
// Text size
|
||||||
properties.setSize(message.id, size);
|
properties.setSize(message.id, size);
|
||||||
|
|
Loading…
Reference in New Issue