Read custom background when creating ActivityOptions from bundle
Test: atest CtsWindowManagerDeviceTestCases:ActivityTransitionTests Change-Id: I43f042678c5bea9d027552266ffb6c00ab92f3c0
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user