Adding null check for mNotificationShadeView
mNotificationShadeView sometimes is not initialized and it causes NPE in some of CTS tests. Adding null check to fix the issues. Bug: 222130505 Test: atest CompatChangeTests Change-Id: I4360f89fd52e0f056f59eb39885569b5b57561ea
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user