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

Commit d63745ee authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Added systrace for on perform action on chips." into main

parents e6661d7f 8f2c8ad7
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,
                                )