Merge "Close system dialogs before launching LongScreenshotsActivity" into tm-qpr-dev
This commit is contained in:
@@ -739,10 +739,14 @@ public class ScreenshotController {
|
|||||||
|
|
||||||
mLongScreenshotHolder.setLongScreenshot(longScreenshot);
|
mLongScreenshotHolder.setLongScreenshot(longScreenshot);
|
||||||
mLongScreenshotHolder.setTransitionDestinationCallback(
|
mLongScreenshotHolder.setTransitionDestinationCallback(
|
||||||
(transitionDestination, onTransitionEnd) ->
|
(transitionDestination, onTransitionEnd) -> {
|
||||||
mScreenshotView.startLongScreenshotTransition(
|
mScreenshotView.startLongScreenshotTransition(
|
||||||
transitionDestination, onTransitionEnd,
|
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);
|
final Intent intent = new Intent(mContext, LongScreenshotActivity.class);
|
||||||
intent.putExtra(LongScreenshotActivity.EXTRA_SCREENSHOT_USER_HANDLE,
|
intent.putExtra(LongScreenshotActivity.EXTRA_SCREENSHOT_USER_HANDLE,
|
||||||
|
|||||||
@@ -898,6 +898,7 @@ public class ScreenshotView extends FrameLayout implements
|
|||||||
|
|
||||||
void startLongScreenshotTransition(Rect destination, Runnable onTransitionEnd,
|
void startLongScreenshotTransition(Rect destination, Runnable onTransitionEnd,
|
||||||
ScrollCaptureController.LongScreenshot longScreenshot) {
|
ScrollCaptureController.LongScreenshot longScreenshot) {
|
||||||
|
mPendingSharedTransition = true;
|
||||||
AnimatorSet animSet = new AnimatorSet();
|
AnimatorSet animSet = new AnimatorSet();
|
||||||
|
|
||||||
ValueAnimator scrimAnim = ValueAnimator.ofFloat(0, 1);
|
ValueAnimator scrimAnim = ValueAnimator.ofFloat(0, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user