Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e85ffea8 authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang
Browse files

Make sure the reading level scale is within min/max limits.

This potentially helps the following issue.  But anyway, this change
is good to have.

issue: 3292648
Change-Id: I0ad74b802d7ce2c3d66de8115187638f1d5e72ff
parent 42edf0f8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -260,8 +260,9 @@ class ZoomManager {
    public final float getReadingLevelScale() {
        // The reading scale is at least 0.5f apart from the overview scale.
        final float MIN_SCALE_DIFF = 0.5f;
        return Math.max(getZoomOverviewScale() + MIN_SCALE_DIFF,
            DEFAULT_READING_LEVEL_SCALE);
        return computeScaleWithLimits(
                   Math.max(getZoomOverviewScale() + MIN_SCALE_DIFF,
                            DEFAULT_READING_LEVEL_SCALE));
    }

    public final float getInvDefaultScale() {