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

Commit 4c888ee9 authored by Lucas Dupin's avatar Lucas Dupin Committed by Android (Google) Code Review
Browse files

Merge "Add systrace for attach and detach" into main

parents 837312ad 6653cecf
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import android.widget.FrameLayout
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.ComposeView
import androidx.tracing.trace
import com.android.compose.theme.PlatformTheme
import com.android.systemui.ambientcue.ui.compose.AmbientCueContainer
import com.android.systemui.ambientcue.ui.viewmodel.AmbientCueViewModel
@@ -95,12 +96,16 @@ constructor(
    }

    override fun onAttachedToWindow() {
        trace("AmbientCue onAttachedToWindow") {
            super.onAttachedToWindow()
            ComposeInitializer.onAttachedToWindow(this)
        }
    }

    override fun onDetachedFromWindow() {
        trace("AmbientCue onDetachedFromWindow") {
            super.onDetachedFromWindow()
            ComposeInitializer.onDetachedFromWindow(this)
        }
    }
}