diff options
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/OverviewProxyService.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/OverviewProxyService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java index 8e5984244476..b1020cfb5a84 100644 --- a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java @@ -52,6 +52,7 @@ import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; +import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_UNAWARE; import static com.android.systemui.shared.system.NavigationBarCompat.FLAG_DISABLE_SWIPE_UP; import static com.android.systemui.shared.system.NavigationBarCompat.InteractionType; @@ -315,7 +316,8 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis } private void updateEnabledState() { - mIsEnabled = mContext.getPackageManager().resolveServiceAsUser(mQuickStepIntent, 0, + mIsEnabled = mContext.getPackageManager().resolveServiceAsUser(mQuickStepIntent, + MATCH_DIRECT_BOOT_UNAWARE, ActivityManagerWrapper.getInstance().getCurrentUserId()) != null; } |