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

Commit 1fb580d6 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

[RONs] Rename hasRequestedPromotedOngoing to isRequestPromotedOngoing

Bug: 417547704
Test: Presubmit
Flag: android.app.opt_in_rich_ongoing
Change-Id: I4efb97b4bbc83094f769c5d93aedf3080731b807
parent 958e4b4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6531,8 +6531,8 @@ package android.app {
    method public long getTimeoutAfter();
    method public boolean hasImage();
    method @FlaggedApi("android.app.api_rich_ongoing") public boolean hasPromotableCharacteristics();
    method @FlaggedApi("android.app.opt_in_rich_ongoing") public boolean hasRequestedPromotedOngoing();
    method @FlaggedApi("android.app.nm_summarization") public boolean hasSummarizedContent();
    method @FlaggedApi("android.app.opt_in_rich_ongoing") public boolean isRequestPromotedOngoing();
    method public void writeToParcel(android.os.Parcel, int);
    field public static final android.media.AudioAttributes AUDIO_ATTRIBUTES_DEFAULT;
    field public static final int BADGE_ICON_LARGE = 2; // 0x2
+3 −3
Original line number Diff line number Diff line
@@ -3355,7 +3355,7 @@ public class Notification implements Parcelable
    @FlaggedApi(Flags.FLAG_API_RICH_ONGOING)
    public boolean hasPromotableCharacteristics() {
        if (Flags.uiRichOngoing()) {
            return hasRequestedPromotedOngoing()
            return isRequestPromotedOngoing()
                    && isOngoingEvent()
                    && hasTitle()
                    && hasPromotableStyle()
@@ -5526,7 +5526,7 @@ public class Notification implements Parcelable
         * <p>This is the first requirement of {@link Notification#hasPromotableCharacteristics()}.
         *
         * @see Notification#EXTRA_REQUEST_PROMOTED_ONGOING
         * @see Notification#hasRequestedPromotedOngoing()
         * @see Notification#isRequestPromotedOngoing()
         */
        @NonNull
        @FlaggedApi(Flags.FLAG_OPT_IN_RICH_ONGOING)
@@ -8224,7 +8224,7 @@ public class Notification implements Parcelable
     * @see Notification.Builder#setRequestPromotedOngoing(boolean)
     */
    @FlaggedApi(Flags.FLAG_OPT_IN_RICH_ONGOING)
    public boolean hasRequestedPromotedOngoing() {
    public boolean isRequestPromotedOngoing() {
        return extras.getBoolean(EXTRA_REQUEST_PROMOTED_ONGOING, false);
    }
+1 −1
Original line number Diff line number Diff line
@@ -213,7 +213,7 @@ private class ActiveNotificationsStoreBuilder(
            bucket = bucket,
            callType = sbn.toCallType(),
            promotedContent = promotedContent,
            requestedPromotion = sbn.notification.hasRequestedPromotedOngoing(),
            requestedPromotion = sbn.notification.isRequestPromotedOngoing(),
        )
    }
}