API feedback: getSuppressNotification -> isNotificationSuppressed
Test: it's a rename / there is a cts CL with renaming
Bug: 130635782
Change-Id: If56d48feae54c928dca48df876bb8fcd41b3d699
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 5248329..0c6c77f 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -8645,19 +8645,29 @@
* @return whether this bubble should suppress the initial notification when it is posted.
*
* @see BubbleMetadata.Builder#setSuppressInitialNotification(boolean)
- * @deprecated TO BE REMOVED, use {@link #getSuppressNotification()} instead.
+ * @deprecated TO BE REMOVED, use {@link #isNotificationSuppressed()} instead.
*/
@Deprecated
public boolean getSuppressInitialNotification() {
- return (mFlags & FLAG_SUPPRESS_NOTIFICATION) != 0;
+ return isNotificationSuppressed();
}
/**
* @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() {
+ 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;
}