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

Commit 06342e5b authored by Behnam Heydarshahi's avatar Behnam Heydarshahi
Browse files

Trace Tile spec on state change

When tracing handleStateChanged, record the tile spec.

Bug: 356254554
Flag: com.android.systemui.qs_new_tiles
Test: manual. Verify that the spec shows up in trace.
Change-Id: Iddb15089cf14faba57ba771a84bbb2a1a95a37cc
parent 93d3f9a9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1087,7 +1087,12 @@ constructor(

    inner class StateChangeRunnable(private val state: QSTile.State) : Runnable {
        override fun run() {
            traceSection("QSTileViewImpl#handleStateChanged") { handleStateChanged(state) }
            var traceTag = "QSTileViewImpl#handleStateChanged"
            if (!state.spec.isNullOrEmpty()) {
                traceTag += ":"
                traceTag += state.spec
            }
            traceSection(traceTag.take(Trace.MAX_SECTION_NAME_LEN)) { handleStateChanged(state) }
        }

        // We want all instances of this runnable to be equal to each other, so they can be used to