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

Commit a62cb6a3 authored by Steven Wu's avatar Steven Wu
Browse files

Add bubble logging for permission dialog shown.

Bug: 123543171
Test: manual
Change-Id: I561939930e9d54579579b818bc25d06597b2d48c
parent 3661808c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5389,7 +5389,7 @@ message BubbleUIChanged {
        HEADER_GO_TO_SETTINGS = 9;
        PERMISSION_OPT_IN = 10;
        PERMISSION_OPT_OUT = 11;
        PERMISSION_IGNORED = 12;
        PERMISSION_DIALOG_SHOWN = 12;
        SWIPE_LEFT = 13;
        SWIPE_RIGHT = 14;
        STACK_EXPANDED = 15;
+2 −0
Original line number Diff line number Diff line
@@ -304,6 +304,8 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList
            mPermissionView.setVisibility(VISIBLE);
            ((ImageView) mPermissionView.findViewById(R.id.pkgicon)).setImageDrawable(mAppIcon);
            ((TextView) mPermissionView.findViewById(R.id.pkgname)).setText(mAppName);
            logBubbleClickEvent(mEntry.notification,
                    StatsLog.BUBBLE_UICHANGED__ACTION__PERMISSION_DIALOG_SHOWN);
        }
    }

+4 −1
Original line number Diff line number Diff line
@@ -762,7 +762,10 @@ public class BubbleStackView extends FrameLayout {
     * @return the index of the bubble view within the bubble stack. The range of the position
     * is between 0 and the bubble count minus 1.
     */
    int getBubbleIndex(Bubble bubble) {
    int getBubbleIndex(@Nullable Bubble bubble) {
        if (bubble == null) {
            return 0;
        }
        return mBubbleContainer.indexOfChild(bubble.iconView);
    }