Skip to content

Commit 4d6a0df

Browse files
Craig MautnerAndroid (Google) Code Review
authored andcommitted
Merge "Do not cancel animations when switching." into jb-dev
2 parents 085c482 + 9fec779 commit 4d6a0df

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

services/java/com/android/server/wm/WindowManagerService.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3966,15 +3966,6 @@ public void overridePendingAppTransitionThumb(Bitmap srcThumb, int startX,
39663966
}
39673967
}
39683968

3969-
private void cancelWindowAnimations(final AppWindowToken wtoken) {
3970-
for (int i = wtoken.windows.size() - 1; i >= 0; i--) {
3971-
final WindowStateAnimator winAnimator = wtoken.windows.get(i).mWinAnimator;
3972-
if (winAnimator.isAnimating()) {
3973-
winAnimator.clearAnimation();
3974-
}
3975-
}
3976-
}
3977-
39783969
public void executeAppTransition() {
39793970
if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS,
39803971
"executeAppTransition()")) {
@@ -3990,12 +3981,6 @@ public void executeAppTransition() {
39903981
}
39913982
if (mNextAppTransition != WindowManagerPolicy.TRANSIT_UNSET) {
39923983
mAppTransitionReady = true;
3993-
for (int i = mOpeningApps.size() - 1; i >= 0; i--) {
3994-
cancelWindowAnimations(mOpeningApps.get(i));
3995-
}
3996-
for (int i = mClosingApps.size() - 1; i >= 0; i--) {
3997-
cancelWindowAnimations(mClosingApps.get(i));
3998-
}
39993984
final long origId = Binder.clearCallingIdentity();
40003985
performLayoutAndPlaceSurfacesLocked();
40013986
Binder.restoreCallingIdentity(origId);
@@ -4343,7 +4328,6 @@ public void setAppVisibility(IBinder token, boolean visible) {
43434328

43444329
if (DEBUG_APP_TRANSITIONS) Slog.v(
43454330
TAG, "Setting dummy animation on: " + wtoken);
4346-
cancelWindowAnimations(wtoken);
43474331
wtoken.mAppAnimator.setDummyAnimation();
43484332
mOpeningApps.remove(wtoken);
43494333
mClosingApps.remove(wtoken);

0 commit comments

Comments
 (0)