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

Commit 6dca8e43 authored by Shuming Hao's avatar Shuming Hao Committed by Automerger Merge Worker
Browse files

Merge "Add new method to differentiate custom notifications" into udc-dev am:...

Merge "Add new method to differentiate custom notifications" into udc-dev am: bda9feab am: 33f655d0

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22501282



Change-Id: I0e7d5f6645aceb346e281c9b4ae44cd04495fb6c
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 890e8f74 33f655d0
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -7015,6 +7015,22 @@ public class Notification implements Parcelable
        return isMediaStyle && hasMediaSession;
    }
    /**
     * @return true for custom notifications, including notifications
     * with DecoratedCustomViewStyle or DecoratedMediaCustomViewStyle,
     * and other notifications with user-provided custom views.
     *
     * @hide
     */
    public Boolean isCustomNotification() {
        if (contentView == null
                && bigContentView == null
                && headsUpContentView == null) {
            return false;
        }
        return true;
    }
    /**
     * @return true if this notification is showing as a bubble
     *