Loading packages/SystemUI/src/com/android/systemui/keyguard/ui/preview/KeyguardPreviewRenderer.kt +4 −0 Original line number Original line Diff line number Diff line Loading @@ -172,6 +172,10 @@ constructor( rootView.translationX = (width - scale * rootView.width) / 2 rootView.translationX = (width - scale * rootView.width) / 2 rootView.translationY = (height - scale * rootView.height) / 2 rootView.translationY = (height - scale * rootView.height) / 2 if (isDestroyed) { return@post } host.setView(rootView, rootView.measuredWidth, rootView.measuredHeight) host.setView(rootView, rootView.measuredWidth, rootView.measuredHeight) } } } } Loading Loading
packages/SystemUI/src/com/android/systemui/keyguard/ui/preview/KeyguardPreviewRenderer.kt +4 −0 Original line number Original line Diff line number Diff line Loading @@ -172,6 +172,10 @@ constructor( rootView.translationX = (width - scale * rootView.width) / 2 rootView.translationX = (width - scale * rootView.width) / 2 rootView.translationY = (height - scale * rootView.height) / 2 rootView.translationY = (height - scale * rootView.height) / 2 if (isDestroyed) { return@post } host.setView(rootView, rootView.measuredWidth, rootView.measuredHeight) host.setView(rootView, rootView.measuredWidth, rootView.measuredHeight) } } } } Loading