diff --git a/packages/SystemUI/src/com/android/systemui/scene/ui/view/SceneWindowRootView.kt b/packages/SystemUI/src/com/android/systemui/scene/ui/view/SceneWindowRootView.kt index 9b5898f42279f..2ad5429668d0e 100644 --- a/packages/SystemUI/src/com/android/systemui/scene/ui/view/SceneWindowRootView.kt +++ b/packages/SystemUI/src/com/android/systemui/scene/ui/view/SceneWindowRootView.kt @@ -52,9 +52,8 @@ class SceneWindowRootView( setOnBackInvokedDispatcher(viewRootImpl.onBackInvokedDispatcher) } - override fun getLifecycle(): Lifecycle { - return this@repeatWhenAttached.lifecycle - } + override val lifecycle: Lifecycle = + this@repeatWhenAttached.lifecycle } )