Launch scrolling screenshots directly from ScreenshotController
We switched to routing the LongScreenshotActivity launch through
ActionIntentExecutor, but this inadvertently broke long screenshot
launching in work profile because the cross-profile launching doesn't
work. Reverting to previous behavior of directly calling startActivity
within ScreenshotController.
Bug: 329659738
Bug: 339372163
Fix: 339372163
Flag: EXEMPT bugfix (reverting to previous behavior)
Test: manual, taking scrolling screenshots in personal+work profile and
verifying that long screenshot activity is successfully started
Change-Id: Ifb6c957ae165f3e469d19d4b1becbca4c1edf7ca
diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java b/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java
index b949741..3ce9f8a 100644
--- a/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java
+++ b/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java
@@ -659,7 +659,7 @@
() -> {
final Intent intent = ActionIntentCreator.INSTANCE.createLongScreenshotIntent(
owner, mContext);
- mActionIntentExecutor.launchIntentAsync(intent, owner, true, null, null);
+ mContext.startActivity(intent);
},
mViewProxy::restoreNonScrollingUi,
mViewProxy::startLongScreenshotTransition);