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

Commit 039f9244 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Add an intdef

Test: make
Fixes: 176822079
Change-Id: I5a807bbbb89a7bd07d7d46c792b9e2199201713a
parent 67a4b371
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -822,6 +822,17 @@ public class Notification implements Parcelable
     */
    public static final int VISIBILITY_SECRET = -1;

    /**
     * @hide
     */
    @IntDef(prefix = "VISIBILITY_", value = {
            VISIBILITY_PUBLIC,
            VISIBILITY_PRIVATE,
            VISIBILITY_SECRET,
            NotificationManager.VISIBILITY_NO_OVERRIDE
    })
    public @interface NotificationVisibilityOverride{};

    /**
     * Notification category: incoming call (voice or video) or similar synchronous communication request.
     */
+2 −1
Original line number Diff line number Diff line
@@ -1786,7 +1786,8 @@ public abstract class NotificationListenerService extends Service {
         * {@link NotificationListenerService.Ranking#VISIBILITY_NO_OVERRIDE} if
         * no such preference has been expressed.
         */
        public int getLockscreenVisibilityOverride() {
        public @Notification.NotificationVisibilityOverride
        int getLockscreenVisibilityOverride() {
            return mVisibilityOverride;
        }