Merge "Adding null check for mNotificationShadeView" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-03-10 21:31:14 +00:00
committed by Android (Google) Code Review

View File

@@ -386,10 +386,12 @@ public class NotificationShadeWindowControllerImpl implements NotificationShadeW
}
visible = true;
}
if (visible) {
mNotificationShadeView.setVisibility(View.VISIBLE);
} else {
mNotificationShadeView.setVisibility(View.INVISIBLE);
if (mNotificationShadeView != null) {
if (visible) {
mNotificationShadeView.setVisibility(View.VISIBLE);
} else {
mNotificationShadeView.setVisibility(View.INVISIBLE);
}
}
}