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; visible = true;
} }
if (visible) { if (mNotificationShadeView != null) {
mNotificationShadeView.setVisibility(View.VISIBLE); if (visible) {
} else { mNotificationShadeView.setVisibility(View.VISIBLE);
mNotificationShadeView.setVisibility(View.INVISIBLE); } else {
mNotificationShadeView.setVisibility(View.INVISIBLE);
}
} }
} }