Loading packages/SystemUI/animation/src/com/android/systemui/animation/GhostedViewLaunchAnimatorController.kt +6 −1 Original line number Diff line number Diff line Loading @@ -209,8 +209,13 @@ open class GhostedViewLaunchAnimatorController( val heightRatio = state.height.toFloat() / ghostedViewState.height val scale = min(widthRatio, heightRatio) launchContainer.getLocationOnScreen(launchContainerLocation) if (ghostedView.parent is ViewGroup) { // Recalculate the matrix in case the ghosted view moved. We ensure that the ghosted // view is still attached to a ViewGroup, otherwise calculateMatrix will throw. GhostView.calculateMatrix(ghostedView, launchContainer, ghostViewMatrix) } launchContainer.getLocationOnScreen(launchContainerLocation) ghostViewMatrix.postScale( scale, scale, ghostedViewState.centerX - launchContainerLocation[0], Loading Loading
packages/SystemUI/animation/src/com/android/systemui/animation/GhostedViewLaunchAnimatorController.kt +6 −1 Original line number Diff line number Diff line Loading @@ -209,8 +209,13 @@ open class GhostedViewLaunchAnimatorController( val heightRatio = state.height.toFloat() / ghostedViewState.height val scale = min(widthRatio, heightRatio) launchContainer.getLocationOnScreen(launchContainerLocation) if (ghostedView.parent is ViewGroup) { // Recalculate the matrix in case the ghosted view moved. We ensure that the ghosted // view is still attached to a ViewGroup, otherwise calculateMatrix will throw. GhostView.calculateMatrix(ghostedView, launchContainer, ghostViewMatrix) } launchContainer.getLocationOnScreen(launchContainerLocation) ghostViewMatrix.postScale( scale, scale, ghostedViewState.centerX - launchContainerLocation[0], Loading