We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26e3f3d + ee44fae commit d07fa6eCopy full SHA for d07fa6e
services/java/com/android/server/accessibility/ScreenMagnifier.java
@@ -376,7 +376,8 @@ public void onMotionEvent(MotionEvent event) {
376
}
377
if (event.getActionMasked() == MotionEvent.ACTION_UP) {
378
clear();
379
- final float scale = mMagnificationController.getScale();
+ final float scale = Math.min(Math.max(mMagnificationController.getScale(),
380
+ MIN_SCALE), MAX_SCALE);
381
if (scale != getPersistedScale()) {
382
persistScale(scale);
383
0 commit comments