Merge "Prevent out of range magnification scale to be persisted." into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d07fa6e0dc
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user