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

Commit d9746639 authored by Lyn Han's avatar Lyn Han Committed by Android (Google) Code Review
Browse files

Merge "Log after click: entry and shade state" into main

parents 576786cf 93c5ed75
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -213,7 +213,9 @@ public class StatusBarNotificationActivityStarter implements NotificationActivit
     */
    @Override
    public void onNotificationClicked(NotificationEntry entry, ExpandableNotificationRow row) {
        mLogger.logStartingActivityFromClick(entry);
        mLogger.logStartingActivityFromClick(entry, row.isHeadsUpState(),
                mKeyguardStateController.isVisible(),
                mNotificationShadeWindowController.getPanelExpanded());

        if (mRemoteInputManager.isRemoteInputActive(entry)) {
            // We have an active remote input typed and the user clicked on the notification.
+7 −2
Original line number Diff line number Diff line
@@ -30,11 +30,16 @@ import javax.inject.Inject
class StatusBarNotificationActivityStarterLogger @Inject constructor(
    @NotifInteractionLog private val buffer: LogBuffer
) {
    fun logStartingActivityFromClick(entry: NotificationEntry) {
    fun logStartingActivityFromClick(entry: NotificationEntry, isHeadsUpState: Boolean,
                                     isKeyguardVisible: Boolean, isPanelExpanded: Boolean) {
        buffer.log(TAG, DEBUG, {
            str1 = entry.logKey
            bool1 = isHeadsUpState
            bool2 = isKeyguardVisible
            bool3 = isPanelExpanded
        }, {
            "(1/5) onNotificationClicked: $str1"
            "(1/5) onNotificationClicked: $str1 isHeadsUpState: $bool1 " +
                    "isKeyguardVisible: $bool2 isPanelExpanded: $bool3"
        })
    }