Loading api/current.txt +2 −1 Original line number Original line Diff line number Diff line Loading @@ -5485,7 +5485,8 @@ package android.app { method @NonNull public android.graphics.drawable.Icon getIcon(); method @NonNull public android.graphics.drawable.Icon getIcon(); method @NonNull public android.app.PendingIntent getIntent(); method @NonNull public android.app.PendingIntent getIntent(); method @Deprecated public boolean getSuppressInitialNotification(); method @Deprecated public boolean getSuppressInitialNotification(); method public boolean getSuppressNotification(); method @Deprecated public boolean getSuppressNotification(); method public boolean isNotificationSuppressed(); method public void writeToParcel(android.os.Parcel, int); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator<android.app.Notification.BubbleMetadata> CREATOR; field @NonNull public static final android.os.Parcelable.Creator<android.app.Notification.BubbleMetadata> CREATOR; } } core/java/android/app/Notification.java +13 −3 Original line number Original line Diff line number Diff line Loading @@ -8645,19 +8645,29 @@ public class Notification implements Parcelable * @return whether this bubble should suppress the initial notification when it is posted. * @return whether this bubble should suppress the initial notification when it is posted. * * * @see BubbleMetadata.Builder#setSuppressInitialNotification(boolean) * @see BubbleMetadata.Builder#setSuppressInitialNotification(boolean) * @deprecated TO BE REMOVED, use {@link #getSuppressNotification()} instead. * @deprecated TO BE REMOVED, use {@link #isNotificationSuppressed()} instead. */ */ @Deprecated @Deprecated public boolean getSuppressInitialNotification() { public boolean getSuppressInitialNotification() { return (mFlags & FLAG_SUPPRESS_NOTIFICATION) != 0; return isNotificationSuppressed(); } } /** /** * @return whether this bubble should suppress the notification when it is posted. * @return whether this bubble should suppress the notification when it is posted. * * * @see BubbleMetadata.Builder#setSuppressInitialNotification(boolean) * @see BubbleMetadata.Builder#setSuppressNotification(boolean) * @deprecated TO BE REMOVED, use {@link #isNotificationSuppressed()} instead. */ */ public boolean getSuppressNotification() { public boolean getSuppressNotification() { return isNotificationSuppressed(); } /** * @return whether this bubble should suppress the notification when it is posted. * * @see BubbleMetadata.Builder#setSuppressNotification(boolean) */ public boolean isNotificationSuppressed() { return (mFlags & FLAG_SUPPRESS_NOTIFICATION) != 0; return (mFlags & FLAG_SUPPRESS_NOTIFICATION) != 0; } } Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -595,7 +595,7 @@ public class BubbleController implements ConfigurationController.ConfigurationLi private void updateShowInShadeForSuppressNotification(NotificationEntry entry) { private void updateShowInShadeForSuppressNotification(NotificationEntry entry) { boolean suppressNotification = entry.getBubbleMetadata() != null boolean suppressNotification = entry.getBubbleMetadata() != null && entry.getBubbleMetadata().getSuppressNotification() && entry.getBubbleMetadata().isNotificationSuppressed() && isForegroundApp(mContext, entry.notification.getPackageName()); && isForegroundApp(mContext, entry.notification.getPackageName()); entry.setShowInShadeWhenBubble(!suppressNotification); entry.setShowInShadeWhenBubble(!suppressNotification); } } Loading Loading
api/current.txt +2 −1 Original line number Original line Diff line number Diff line Loading @@ -5485,7 +5485,8 @@ package android.app { method @NonNull public android.graphics.drawable.Icon getIcon(); method @NonNull public android.graphics.drawable.Icon getIcon(); method @NonNull public android.app.PendingIntent getIntent(); method @NonNull public android.app.PendingIntent getIntent(); method @Deprecated public boolean getSuppressInitialNotification(); method @Deprecated public boolean getSuppressInitialNotification(); method public boolean getSuppressNotification(); method @Deprecated public boolean getSuppressNotification(); method public boolean isNotificationSuppressed(); method public void writeToParcel(android.os.Parcel, int); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator<android.app.Notification.BubbleMetadata> CREATOR; field @NonNull public static final android.os.Parcelable.Creator<android.app.Notification.BubbleMetadata> CREATOR; } }
core/java/android/app/Notification.java +13 −3 Original line number Original line Diff line number Diff line Loading @@ -8645,19 +8645,29 @@ public class Notification implements Parcelable * @return whether this bubble should suppress the initial notification when it is posted. * @return whether this bubble should suppress the initial notification when it is posted. * * * @see BubbleMetadata.Builder#setSuppressInitialNotification(boolean) * @see BubbleMetadata.Builder#setSuppressInitialNotification(boolean) * @deprecated TO BE REMOVED, use {@link #getSuppressNotification()} instead. * @deprecated TO BE REMOVED, use {@link #isNotificationSuppressed()} instead. */ */ @Deprecated @Deprecated public boolean getSuppressInitialNotification() { public boolean getSuppressInitialNotification() { return (mFlags & FLAG_SUPPRESS_NOTIFICATION) != 0; return isNotificationSuppressed(); } } /** /** * @return whether this bubble should suppress the notification when it is posted. * @return whether this bubble should suppress the notification when it is posted. * * * @see BubbleMetadata.Builder#setSuppressInitialNotification(boolean) * @see BubbleMetadata.Builder#setSuppressNotification(boolean) * @deprecated TO BE REMOVED, use {@link #isNotificationSuppressed()} instead. */ */ public boolean getSuppressNotification() { public boolean getSuppressNotification() { return isNotificationSuppressed(); } /** * @return whether this bubble should suppress the notification when it is posted. * * @see BubbleMetadata.Builder#setSuppressNotification(boolean) */ public boolean isNotificationSuppressed() { return (mFlags & FLAG_SUPPRESS_NOTIFICATION) != 0; return (mFlags & FLAG_SUPPRESS_NOTIFICATION) != 0; } } Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -595,7 +595,7 @@ public class BubbleController implements ConfigurationController.ConfigurationLi private void updateShowInShadeForSuppressNotification(NotificationEntry entry) { private void updateShowInShadeForSuppressNotification(NotificationEntry entry) { boolean suppressNotification = entry.getBubbleMetadata() != null boolean suppressNotification = entry.getBubbleMetadata() != null && entry.getBubbleMetadata().getSuppressNotification() && entry.getBubbleMetadata().isNotificationSuppressed() && isForegroundApp(mContext, entry.notification.getPackageName()); && isForegroundApp(mContext, entry.notification.getPackageName()); entry.setShowInShadeWhenBubble(!suppressNotification); entry.setShowInShadeWhenBubble(!suppressNotification); } } Loading