Limit text zoom

This commit is contained in:
M66B 2021-06-24 08:36:57 +02:00
parent 51bcae1547
commit 6be9129a75
1 changed files with 2 additions and 0 deletions

View File

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