Read custom background when creating ActivityOptions from bundle

Test: atest CtsWindowManagerDeviceTestCases:ActivityTransitionTests
Change-Id: I43f042678c5bea9d027552266ffb6c00ab92f3c0
This commit is contained in:
Pablo Gamito
2022-03-03 16:51:35 +01:00
parent db84899c5b
commit 98034d22c6
2 changed files with 3 additions and 0 deletions

View File

@@ -1154,6 +1154,7 @@ public class ActivityOptions extends ComponentOptions {
case ANIM_CUSTOM:
mCustomEnterResId = opts.getInt(KEY_ANIM_ENTER_RES_ID, 0);
mCustomExitResId = opts.getInt(KEY_ANIM_EXIT_RES_ID, 0);
mCustomBackgroundColor = opts.getInt(KEY_ANIM_BACKGROUND_COLOR, 0);
mAnimationStartedListener = IRemoteCallback.Stub.asInterface(
opts.getBinder(KEY_ANIM_START_LISTENER));
break;

View File

@@ -1305,6 +1305,8 @@ public class AppTransition implements Dump {
pw.print(Integer.toHexString(mNextAppTransitionEnter));
pw.print(" mNextAppTransitionExit=0x");
pw.println(Integer.toHexString(mNextAppTransitionExit));
pw.print(" mNextAppTransitionBackgroundColor=0x");
pw.println(Integer.toHexString(mNextAppTransitionBackgroundColor));
}
switch (mNextAppTransitionType) {
case NEXT_TRANSIT_TYPE_CUSTOM_IN_PLACE: