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

Commit 55d247e9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Show traces when side fps is shown or hidden (with reasons)" into tm-qpr-dev

parents 11c5ba05 59d34b59
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ import com.android.systemui.flags.Flags
import com.android.systemui.keyguard.domain.interactor.AlternateBouncerInteractor
import com.android.systemui.recents.OverviewProxyService
import com.android.systemui.util.concurrency.DelayableExecutor
import com.android.systemui.util.traceSection
import java.io.PrintWriter
import javax.inject.Inject
import kotlinx.coroutines.CoroutineScope
@@ -215,7 +216,9 @@ constructor(
        requests.add(request)
        mainExecutor.execute {
            if (overlayView == null) {
                traceSection("SideFpsController#show(request=${request.name}, reason=$reason") {
                    createOverlayForDisplay(reason)
                }
            } else {
                Log.v(TAG, "overlay already shown")
            }
@@ -227,7 +230,7 @@ constructor(
        requests.remove(request)
        mainExecutor.execute {
            if (requests.isEmpty()) {
                overlayView = null
                traceSection("SideFpsController#hide(${request.name}") { overlayView = null }
            }
        }
    }