Merge "Fix screen off after panel expansion" into tm-dev am: 659341ffd4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18437702 Change-Id: I88b967f0c4b23b0a2012cd2ad580f625823e4b0c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3038,10 +3038,11 @@ public class NotificationPanelViewController extends PanelViewController {
|
|||||||
private void updatePanelExpanded() {
|
private void updatePanelExpanded() {
|
||||||
boolean isExpanded = !isFullyCollapsed() || mExpectingSynthesizedDown;
|
boolean isExpanded = !isFullyCollapsed() || mExpectingSynthesizedDown;
|
||||||
if (mPanelExpanded != isExpanded) {
|
if (mPanelExpanded != isExpanded) {
|
||||||
|
mPanelExpanded = isExpanded;
|
||||||
|
|
||||||
mHeadsUpManager.setIsPanelExpanded(isExpanded);
|
mHeadsUpManager.setIsPanelExpanded(isExpanded);
|
||||||
mStatusBarTouchableRegionManager.setPanelExpanded(isExpanded);
|
mStatusBarTouchableRegionManager.setPanelExpanded(isExpanded);
|
||||||
mCentralSurfaces.setPanelExpanded(isExpanded);
|
mCentralSurfaces.setPanelExpanded(isExpanded);
|
||||||
mPanelExpanded = isExpanded;
|
|
||||||
|
|
||||||
if (!isExpanded && mQs != null && mQs.isCustomizing()) {
|
if (!isExpanded && mQs != null && mQs.isCustomizing()) {
|
||||||
mQs.closeCustomizer();
|
mQs.closeCustomizer();
|
||||||
@@ -3049,6 +3050,10 @@ public class NotificationPanelViewController extends PanelViewController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean isPanelExpanded() {
|
||||||
|
return mPanelExpanded;
|
||||||
|
}
|
||||||
|
|
||||||
private int calculatePanelHeightShade() {
|
private int calculatePanelHeightShade() {
|
||||||
final int maxHeight = mNotificationStackScrollLayoutController.getHeight();
|
final int maxHeight = mNotificationStackScrollLayoutController.getHeight();
|
||||||
if (mBarState == KEYGUARD) {
|
if (mBarState == KEYGUARD) {
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ class UnlockedScreenOffAnimationController @Inject constructor(
|
|||||||
// 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 ((!this::mCentralSurfaces.isInitialized ||
|
if ((!this::mCentralSurfaces.isInitialized ||
|
||||||
mCentralSurfaces.notificationPanelViewController.isExpanded) &&
|
mCentralSurfaces.notificationPanelViewController.isPanelExpanded) &&
|
||||||
// Status bar might be expanded because we have started
|
// Status bar might be expanded because we have started
|
||||||
// playing the animation already
|
// playing the animation already
|
||||||
!isAnimationPlaying()
|
!isAnimationPlaying()
|
||||||
|
|||||||
Reference in New Issue
Block a user