Merge "Close panel immediately on launch animation end" into tm-dev am: dad4f1c9e8

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18912507

Change-Id: Ib31550184acad62e341fe88cb0b387f60024503d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Matt Pietal 2022-06-16 16:37:28 +00:00 committed by Automerger Merge Worker
commit 3e40b22290
2 changed files with 11 additions and 1 deletions

View File

@ -485,6 +485,8 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
*/
private IRemoteAnimationRunner mKeyguardExitAnimationRunner;
private CentralSurfaces mCentralSurfaces;
private final DeviceConfig.OnPropertiesChangedListener mOnPropertiesChangedListener =
new DeviceConfig.OnPropertiesChangedListener() {
@Override
@ -845,6 +847,13 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
+ mOccluded);
}
@Override
public void onLaunchAnimationEnd(boolean launchIsFullScreen) {
if (launchIsFullScreen) {
mCentralSurfaces.instantCollapseNotificationPanel();
}
}
@NonNull
@Override
public ViewGroup getLaunchContainer() {
@ -2846,6 +2855,7 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
@Nullable PanelExpansionStateManager panelExpansionStateManager,
BiometricUnlockController biometricUnlockController,
View notificationContainer, KeyguardBypassController bypassController) {
mCentralSurfaces = centralSurfaces;
mKeyguardViewControllerLazy.get().registerCentralSurfaces(
centralSurfaces,
panelView,

View File

@ -1596,7 +1596,7 @@ public class CentralSurfacesImpl extends CoreStartable implements
}
}
});
mStatusBarKeyguardViewManager.registerCentralSurfaces(
mKeyguardViewMediator.registerCentralSurfaces(
/* statusBar= */ this,
mNotificationPanelViewController,
mPanelExpansionStateManager,