AOD: disable quicksettings while dozing

Test: Trigger ambient display / AOD, verify quicksettings is not expandable
Bug: 37303800
Change-Id: I694360f4d728ff9714036d0b92176c922ff53e9a
This commit is contained in:
Adrian Roos
2017-04-17 11:38:16 -07:00
parent 46f6e69e1b
commit 68d468019e

View File

@@ -1907,6 +1907,7 @@ public class StatusBar extends SystemUI implements DemoMode,
&& (mUserSetup || mUserSwitcherController == null
|| !mUserSwitcherController.isSimpleUserSwitcher())
&& ((mDisabled2 & StatusBarManager.DISABLE2_QUICK_SETTINGS) == 0)
&& !mDozing
&& !ONLY_CORE_APPS);
}
@@ -4312,6 +4313,7 @@ public class StatusBar extends SystemUI implements DemoMode,
mScrimController.setDozing(mDozing);
mKeyguardIndicationController.setDozing(mDozing);
mNotificationPanel.setDark(mDozing);
updateQsExpansionEnabled();
// Immediately abort the dozing from the doze scrim controller in case of wake-and-unlock
// for pulsing so the Keyguard fade-out animation scrim can take over.