Loading core/api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -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 core/java/android/app/Notification.java +3 −3 Original line number Diff line number Diff line Loading @@ -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() Loading Loading @@ -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) Loading Loading @@ -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); } Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/domain/interactor/RenderNotificationListInteractor.kt +1 −1 Original line number Diff line number Diff line Loading @@ -213,7 +213,7 @@ private class ActiveNotificationsStoreBuilder( bucket = bucket, callType = sbn.toCallType(), promotedContent = promotedContent, requestedPromotion = sbn.notification.hasRequestedPromotedOngoing(), requestedPromotion = sbn.notification.isRequestPromotedOngoing(), ) } } Loading Loading
core/api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -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
core/java/android/app/Notification.java +3 −3 Original line number Diff line number Diff line Loading @@ -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() Loading Loading @@ -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) Loading Loading @@ -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); } Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/domain/interactor/RenderNotificationListInteractor.kt +1 −1 Original line number Diff line number Diff line Loading @@ -213,7 +213,7 @@ private class ActiveNotificationsStoreBuilder( bucket = bucket, callType = sbn.toCallType(), promotedContent = promotedContent, requestedPromotion = sbn.notification.hasRequestedPromotedOngoing(), requestedPromotion = sbn.notification.isRequestPromotedOngoing(), ) } } Loading