Only toggle notification panel on KEYCODE_NOTIFICATION when setup is complete.

Test: manual
Bug: 238062361
Change-Id: I7b9030356d478f76b55804c3647d3aab6bced231
This commit is contained in:
Philip Junker
2022-09-22 12:47:49 +00:00
parent 6c128595ed
commit 1f6c7286e9

View File

@@ -1662,7 +1662,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
private void toggleNotificationPanel() {
IStatusBarService statusBarService = getStatusBarService();
if (statusBarService != null) {
if (isUserSetupComplete() && statusBarService != null) {
try {
statusBarService.togglePanel();
} catch (RemoteException e) {