summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2018-06-29 12:26:49 -0700
committerWinson Chung <winsonc@google.com>2018-06-29 17:36:29 -0700
commit06ca2744298933cd89ddc30c9d38e6d6b19447f5 (patch)
tree5b1e177e83022a75fe11e436e08a0952115493e9 /packages/SystemUI/src/com/android/systemui/OverviewProxyService.java
parent3743d28ec98d06f8aa51d3e03b573dc2abe5aef1 (diff)
Allow share/edit screenshot actions from lockscreen
- Dismiss keyguard when routing the actions through the proxy receiver - Fix issue with edit activity also disallowing auto-enter PiP - Minor cleanup of some unused/shared code Bug: 72459081 Test: Launch share/edit screenshot from lockscreen (and normally) Test: Launch screenshot share action with auto-enter PiP activity and ensure it does not trigger PiP Change-Id: Ibae2de51bc3fe10f439d7506ab7d0d9243142c94
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/OverviewProxyService.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/OverviewProxyService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java
index 1e5b77ee3aa4..70ca055677e7 100644
--- a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java
+++ b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java
@@ -99,7 +99,7 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
long token = Binder.clearCallingIdentity();
try {
mHandler.post(() -> {
- StatusBar statusBar = ((SystemUIApplication) mContext).getComponent(
+ StatusBar statusBar = SysUiServiceProvider.getComponent(mContext,
StatusBar.class);
if (statusBar != null) {
statusBar.showScreenPinningRequest(taskId, false /* allowCancel */);
@@ -152,7 +152,7 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
public Rect getNonMinimizedSplitScreenSecondaryBounds() {
long token = Binder.clearCallingIdentity();
try {
- Divider divider = ((SystemUIApplication) mContext).getComponent(Divider.class);
+ Divider divider = SysUiServiceProvider.getComponent(mContext, Divider.class);
if (divider != null) {
return divider.getView().getNonMinimizedSplitScreenSecondaryBounds();
}