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

Commit 590db03e authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang Committed by Android Git Automerger
Browse files

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

* commit 'adba8021':
  Make sure the reading level scale is within min/max limits.
parents 2e260874 adba8021
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() {