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

Commit 02a562e4 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Log smart space events as they arrive

Bug: 421995043
Test: adb logcat | grep -i ambientcue
Flag: com.android.systemui.enable_underlay
Change-Id: I168d7a328be2420deb3333529da7a5da4b5f175e
parent 9e2754d1
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ constructor(
                                                    EXTRA_AUTOFILL_ID
                                                )
                                            val token = activityId?.token
                                            Log.v(
                                            Log.i(
                                                TAG,
                                                "Performing action: $activityId, $autofillId, " +
                                                    "$pendingIntent, $intent",
@@ -184,14 +184,14 @@ constructor(
                                        }
                                    },
                                    onPerformLongClick = {
                                        Log.v(TAG, "AmbientCueRepositoryImpl: onPerformLongClick")
                                        Log.i(TAG, "AmbientCueRepositoryImpl: onPerformLongClick")
                                        trace("performAmbientCueLongClick") {
                                            val pendingIntent =
                                                chip.extras?.getParcelable<PendingIntent>(
                                                    EXTRA_ATTRIBUTION_DIALOG_PENDING_INTENT
                                                )
                                            if (pendingIntent != null) {
                                                Log.v(TAG, "Performing long click: $pendingIntent")
                                                Log.i(TAG, "Performing long click: $pendingIntent")
                                                launchPendingIntent(pendingIntent)
                                            }
                                        }
@@ -203,7 +203,7 @@ constructor(
                    if (DEBUG) {
                        Log.d(TAG, "SmartSpace OnTargetsAvailableListener $targets")
                    }
                    Log.v(TAG, "SmartSpace actions $actions")
                    Log.i(TAG, "SmartSpace actions $actions")
                    trySend(actions)
                }