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

Commit d752d370 authored by Mady Mellor's avatar Mady Mellor Committed by Android (Google) Code Review
Browse files

Merge "Add notion of bubble to NotificationData"

parents 719a8643 6cb20df2
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -142,6 +142,16 @@ public class NotificationData {
         */
        private boolean hasSentReply;

        /**
         * Whether this notification should be displayed as a bubble.
         */
        private boolean mIsBubble;

        /**
         * Whether the user has dismissed this notification when it was in bubble form.
         */
        private boolean mUserDismissedBubble;

        public Entry(StatusBarNotification n) {
            this(n, null);
        }
@@ -176,6 +186,22 @@ public class NotificationData {
            return interruption;
        }

        public void setIsBubble(boolean bubbleable) {
            mIsBubble = bubbleable;
        }

        public boolean isBubble() {
            return mIsBubble;
        }

        public void setBubbleDismissed(boolean userDismissed) {
            mUserDismissedBubble = userDismissed;
        }

        public boolean isBubbleDismissed() {
            return mUserDismissedBubble;
        }

        /**
         * Resets the notification entry to be re-used.
         */