Merge "Only toggle notification panel on KEYCODE_NOTIFICATION when setup is complete."

This commit is contained in:
Philip Junker
2022-09-23 11:42:33 +00:00
committed by Android (Google) Code Review

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) {