Merge "Close panel immediately on launch animation end" into tm-dev
This commit is contained in:
@@ -485,6 +485,8 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
|
|||||||
*/
|
*/
|
||||||
private IRemoteAnimationRunner mKeyguardExitAnimationRunner;
|
private IRemoteAnimationRunner mKeyguardExitAnimationRunner;
|
||||||
|
|
||||||
|
private CentralSurfaces mCentralSurfaces;
|
||||||
|
|
||||||
private final DeviceConfig.OnPropertiesChangedListener mOnPropertiesChangedListener =
|
private final DeviceConfig.OnPropertiesChangedListener mOnPropertiesChangedListener =
|
||||||
new DeviceConfig.OnPropertiesChangedListener() {
|
new DeviceConfig.OnPropertiesChangedListener() {
|
||||||
@Override
|
@Override
|
||||||
@@ -845,6 +847,13 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
|
|||||||
+ mOccluded);
|
+ mOccluded);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLaunchAnimationEnd(boolean launchIsFullScreen) {
|
||||||
|
if (launchIsFullScreen) {
|
||||||
|
mCentralSurfaces.instantCollapseNotificationPanel();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public ViewGroup getLaunchContainer() {
|
public ViewGroup getLaunchContainer() {
|
||||||
@@ -2846,6 +2855,7 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
|
|||||||
@Nullable PanelExpansionStateManager panelExpansionStateManager,
|
@Nullable PanelExpansionStateManager panelExpansionStateManager,
|
||||||
BiometricUnlockController biometricUnlockController,
|
BiometricUnlockController biometricUnlockController,
|
||||||
View notificationContainer, KeyguardBypassController bypassController) {
|
View notificationContainer, KeyguardBypassController bypassController) {
|
||||||
|
mCentralSurfaces = centralSurfaces;
|
||||||
mKeyguardViewControllerLazy.get().registerCentralSurfaces(
|
mKeyguardViewControllerLazy.get().registerCentralSurfaces(
|
||||||
centralSurfaces,
|
centralSurfaces,
|
||||||
panelView,
|
panelView,
|
||||||
|
|||||||
@@ -1596,7 +1596,7 @@ public class CentralSurfacesImpl extends CoreStartable implements
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
mStatusBarKeyguardViewManager.registerCentralSurfaces(
|
mKeyguardViewMediator.registerCentralSurfaces(
|
||||||
/* statusBar= */ this,
|
/* statusBar= */ this,
|
||||||
mNotificationPanelViewController,
|
mNotificationPanelViewController,
|
||||||
mPanelExpansionStateManager,
|
mPanelExpansionStateManager,
|
||||||
|
|||||||
Reference in New Issue
Block a user