Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd417aa3 authored by Chris Göllner's avatar Chris Göllner Committed by Android (Google) Code Review
Browse files

Merge "[sb] Don't pass in application context, use the root's instead" into main

parents 0c8597da 612b0ac9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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(