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

Commit e6752329 authored by Lyn's avatar Lyn
Browse files

Log after click: is remote input active

Bug: 292534086
Test: click on notif with active remote input; inspect buffer logs
Change-Id: I4619a0a265ccc4ff8eb36d63efdbe261b94ab2e1
parent 192076db
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -219,6 +219,7 @@ public class StatusBarNotificationActivityStarter implements NotificationActivit
            // We have an active remote input typed and the user clicked on the notification.
            // this was probably unintentional, so we're closing the edit text instead.
            mRemoteInputManager.closeRemoteInputs();
            mLogger.logCloseRemoteInput(entry);
            return;
        }
        Notification notification = entry.getSbn().getNotification();
+8 −0
Original line number Diff line number Diff line
@@ -72,6 +72,14 @@ class StatusBarNotificationActivityStarterLogger @Inject constructor(
        })
    }

    fun logCloseRemoteInput(entry: NotificationEntry) {
        buffer.log(TAG, DEBUG, {
            str1 = entry.logKey
        }, {
            "Closing remote input for $str1"
        })
    }

    fun logExpandingBubble(entry: NotificationEntry) {
        buffer.log(TAG, DEBUG, {
            str1 = entry.logKey