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

Commit a7f38925 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android Git Automerger
Browse files

am d3e5180f: am d07fa6e0: Merge "Prevent out of range magnification scale to...

am d3e5180f: am d07fa6e0: Merge "Prevent out of range magnification scale to be persisted." into jb-mr1-dev

* commit 'd3e5180f':
  Prevent out of range magnification scale to be persisted.
parents e0fec434 d3e5180f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -376,7 +376,8 @@ public final class ScreenMagnifier implements EventStreamTransformation {
            }
            if (event.getActionMasked() == MotionEvent.ACTION_UP) {
                clear();
                final float scale = mMagnificationController.getScale();
                final float scale = Math.min(Math.max(mMagnificationController.getScale(),
                        MIN_SCALE), MAX_SCALE);
                if (scale != getPersistedScale()) {
                    persistScale(scale);
                }