summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/ui/composable/StatusBarRoot.kt4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/ui/composable/StatusBarRoot.kt b/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/ui/composable/StatusBarRoot.kt
index 440eb91841ee..a21cc22ad03f 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/ui/composable/StatusBarRoot.kt
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/ui/composable/StatusBarRoot.kt
@@ -16,7 +16,6 @@
package com.android.systemui.statusbar.pipeline.shared.ui.composable
-import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
@@ -50,7 +49,6 @@ import kotlinx.coroutines.launch
class StatusBarRootFactory
@Inject
constructor(
- private val context: Context,
private val homeStatusBarViewModel: HomeStatusBarViewModel,
private val homeStatusBarViewBinder: HomeStatusBarViewBinder,
private val notificationIconsBinder: NotificationIconContainerStatusBarViewBinder,
@@ -59,7 +57,7 @@ constructor(
private val ongoingCallController: OngoingCallController,
) {
fun create(root: ViewGroup, andThen: (ViewGroup) -> Unit): ComposeView {
- val composeView = ComposeView(context)
+ val composeView = ComposeView(root.context)
composeView.apply {
setContent {
StatusBarRoot(