am 53771e5f: Merge "Remove useless/repetitive code"
* commit '53771e5f955f67035cf6b6432c34171a18ab14dc': Remove useless/repetitive code
This commit is contained in:
@@ -4872,13 +4872,11 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
throw new SecurityException("Requires SET_ANIMATION_SCALE permission");
|
throw new SecurityException("Requires SET_ANIMATION_SCALE permission");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scale < 0) scale = 0;
|
scale = fixScale(scale);
|
||||||
else if (scale > 20) scale = 20;
|
|
||||||
scale = Math.abs(scale);
|
|
||||||
switch (which) {
|
switch (which) {
|
||||||
case 0: mWindowAnimationScale = fixScale(scale); break;
|
case 0: mWindowAnimationScale = scale; break;
|
||||||
case 1: mTransitionAnimationScale = fixScale(scale); break;
|
case 1: mTransitionAnimationScale = scale; break;
|
||||||
case 2: mAnimatorDurationScale = fixScale(scale); break;
|
case 2: mAnimatorDurationScale = scale; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Persist setting
|
// Persist setting
|
||||||
|
|||||||
Reference in New Issue
Block a user