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

Commit adba8021 authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang Committed by Android (Google) Code Review
Browse files

Merge "Make sure the reading level scale is within min/max limits." into honeycomb

parents de69817b e85ffea8
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() {