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

Commit 8f2c8ad7 authored by Kai Li's avatar Kai Li
Browse files

Added systrace for on perform action on chips.

Change-Id: Ic8230906083498b3454d66811c729fab88ef6c62
Bug: 418096440
Flag: com.android.systemui.enable_underlay
Test: atest AmbientCueRepositoryTest
parent 160e1c04
Loading
Loading
Loading
Loading
+39 −36
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import android.util.Log
import android.view.autofill.AutofillId
import android.view.autofill.AutofillManager
import androidx.annotation.VisibleForTesting
import androidx.tracing.trace
import com.android.systemui.LauncherProxyService
import com.android.systemui.LauncherProxyService.LauncherProxyListener
import com.android.systemui.ambientcue.shared.model.ActionModel
@@ -127,6 +128,7 @@ constructor(
                                    label = title,
                                    attribution = chip.subtitle.toString(),
                                    onPerformAction = {
                                        trace("performAmbientCueAction") {
                                            val intent = chip.intent
                                            val pendingIntent = chip.pendingIntent
                                            val activityId =
@@ -167,6 +169,7 @@ constructor(
                                            } else if (intent != null) {
                                                activityStarter.startActivity(intent, false)
                                            }
                                        }
                                    },
                                    taskId = activityId?.taskId ?: INVALID_TASK_ID,
                                )