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

Commit 1684f2d5 authored by Steven Wu's avatar Steven Wu
Browse files

Add logging for bubble flyout action.

Bug: 123543171
Test: manual
Change-Id: I7b0a21c0a0c23c211e4c72ec5b2dfc7ea60537d6
parent 49e9f80e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5575,6 +5575,7 @@ message BubbleUIChanged {
        SWIPE_LEFT = 13;
        SWIPE_RIGHT = 14;
        STACK_EXPANDED = 15;
        FLYOUT = 16;
    }
    optional Action action = 6;

+3 −1
Original line number Diff line number Diff line
@@ -889,6 +889,7 @@ public class BubbleStackView extends FrameLayout {
                mFlyout.removeCallbacks(mHideFlyout);
                mFlyout.postDelayed(mHideFlyout, FLYOUT_HIDE_AFTER);
            });
            logBubbleEvent(bubble, StatsLog.BUBBLE_UICHANGED__ACTION__FLYOUT);
        }
    }

@@ -1060,7 +1061,8 @@ public class BubbleStackView extends FrameLayout {
     * @param action the user interaction enum.
     */
    private void logBubbleEvent(@Nullable Bubble bubble, int action) {
        if (bubble == null) {
        if (bubble == null || bubble.entry == null
                || bubble.entry.notification == null) {
            StatsLog.write(StatsLog.BUBBLE_UI_CHANGED,
                    null /* package name */,
                    null /* notification channel */,