Don't specify creator BAL options while sending PI
When we have `startDragToDesktopTransition`, we create and send a pending intent to move the home task to front transiently. Currently, for both creating and sending the PI we use the same option bundle which has a creator BAL option. However creator BAL options should only be used when we create the PI and not when sending it. So instead we can specify the options while creating the PI and not when sending it. In some builds this work fine as PENDING_INTENT_OPTIONS_CHECK is not yet enabled so it just logs a `wtf` message but in some other builds it is enabled which throws an exception and causes the transition to abort. Test: Try drag to desktop on a previously broken build, observe that it works fine and doesn't abort the transition with black home screen. Bug: 328392734 Change-Id: I10f1edad5304550d0168ae5f23b03c8f90e0149b
Loading
Please register or sign in to comment