Close system dialogs before launching LongScreenshotsActivity
In rare cases they may be blocking the shared element transition.
Bug: 241048682
Test: Manual reproduction of bug (long screenshot of quick actions edit
screen)
Change-Id: I069c8fb55a17ac456c7ced795ab4a23856eb9cda
This commit is contained in:
@@ -728,10 +728,14 @@ public class ScreenshotController {
|
||||
|
||||
mLongScreenshotHolder.setLongScreenshot(longScreenshot);
|
||||
mLongScreenshotHolder.setTransitionDestinationCallback(
|
||||
(transitionDestination, onTransitionEnd) ->
|
||||
(transitionDestination, onTransitionEnd) -> {
|
||||
mScreenshotView.startLongScreenshotTransition(
|
||||
transitionDestination, onTransitionEnd,
|
||||
longScreenshot));
|
||||
longScreenshot);
|
||||
// TODO: Do this via ActionIntentExecutor instead.
|
||||
mContext.sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
|
||||
}
|
||||
);
|
||||
|
||||
final Intent intent = new Intent(mContext, LongScreenshotActivity.class);
|
||||
intent.setFlags(
|
||||
|
||||
@@ -872,6 +872,7 @@ public class ScreenshotView extends FrameLayout implements
|
||||
|
||||
void startLongScreenshotTransition(Rect destination, Runnable onTransitionEnd,
|
||||
ScrollCaptureController.LongScreenshot longScreenshot) {
|
||||
mPendingSharedTransition = true;
|
||||
AnimatorSet animSet = new AnimatorSet();
|
||||
|
||||
ValueAnimator scrimAnim = ValueAnimator.ofFloat(0, 1);
|
||||
|
||||
Reference in New Issue
Block a user