summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Matt Pietal <mpietal@google.com> 2020-05-08 14:38:27 -0400
committer Matt Pietal <mpietal@google.com> 2020-05-08 14:38:27 -0400
commitf6d95ca5acc8e5147f03f13fbe5c2087f8f85ee5 (patch)
tree101982a7d3f7fd30ae2683eec605376eabfdc57a
parentf3b5ba7a985781ac0b3e489e9ee2bf01830ef4f1 (diff)
Controls UI - Only show controls after device is setup
Do not show while not provisioned Fixes: 155949345 Test: manual Change-Id: Ia63ed84a5d690b31e6153e5b897fca04110cfdd0
-rw-r--r--packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java
index cf3538c592d9..909edd412a57 100644
--- a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java
+++ b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java
@@ -2379,7 +2379,8 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,
|| mKeyguardStateController.canDismissLockScreen();
return (isUnlocked || mShowLockScreenCardsAndControls)
&& mControlsUiController.getAvailable()
- && !mControlsServiceInfos.isEmpty();
+ && !mControlsServiceInfos.isEmpty()
+ && mDeviceProvisioned;
}
// TODO: Remove legacy layout XML and classes.
protected boolean shouldUseControlsLayout() {