Merge "Check whether StatusBar is initialized in ScreenOffAnimationController." into sc-dev am: 412a2d2c3d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15054296 Change-Id: Ie8df7eda20c70f029366ffbfdaeb823dd1ea5284
This commit is contained in:
@@ -172,7 +172,8 @@ class UnlockedScreenOffAnimationController @Inject constructor(
|
|||||||
// We currently draw both the light reveal scrim, and the AOD UI, in the shade. If it's
|
// We currently draw both the light reveal scrim, and the AOD UI, in the shade. If it's
|
||||||
// already expanded and showing notifications/QS, the animation looks really messy. For now,
|
// already expanded and showing notifications/QS, the animation looks really messy. For now,
|
||||||
// disable it if the notification panel is expanded.
|
// disable it if the notification panel is expanded.
|
||||||
if (statusBar.notificationPanelViewController.isFullyExpanded) {
|
if (!this::statusBar.isInitialized ||
|
||||||
|
statusBar.notificationPanelViewController.isFullyExpanded) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user