Merge "Only run Animation#setBackdropColor on overriden app transition" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2b70f83f9e
@@ -683,6 +683,9 @@ public class AppTransition implements Dump {
|
||||
} else if (mNextAppTransitionType == NEXT_TRANSIT_TYPE_CUSTOM) {
|
||||
a = mTransitionAnimation.loadAppTransitionAnimation(mNextAppTransitionPackage,
|
||||
enter ? mNextAppTransitionEnter : mNextAppTransitionExit);
|
||||
if (mNextAppTransitionBackgroundColor != 0) {
|
||||
a.setBackdropColor(mNextAppTransitionBackgroundColor);
|
||||
}
|
||||
ProtoLog.v(WM_DEBUG_APP_TRANSITIONS_ANIM,
|
||||
"applyAnimation: anim=%s nextAppTransition=ANIM_CUSTOM transit=%s "
|
||||
+ "isEntrance=%b Callers=%s",
|
||||
@@ -842,10 +845,6 @@ public class AppTransition implements Dump {
|
||||
}
|
||||
setAppTransitionFinishedCallbackIfNeeded(a);
|
||||
|
||||
if (mNextAppTransitionBackgroundColor != 0) {
|
||||
a.setBackdropColor(mNextAppTransitionBackgroundColor);
|
||||
}
|
||||
|
||||
return a;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user