diff options
| author | Griff Hazen <griff@google.com> | 2014-05-05 15:15:12 -0700 |
|---|---|---|
| committer | Griff Hazen <griff@google.com> | 2014-05-05 15:45:08 -0700 |
| commit | ed0c87e7cdd2f641b6ed78df62b20a9f08ac16bb (patch) | |
| tree | af3b3edf4b4e339c1cc4f1b1f6bb816d1b66c3da /core/java | |
| parent | 1e822a8fe1f3063aa0d3eb47a7afdda9702c1734 (diff) | |
DO NOT MERGE Hide Notification categories from API 20 (KKWT)
Bug: 14116162
Change-Id: I59e499dde9a06a4bf455eecb3665afaa1b574dae
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/Notification.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 55e7470d15d3..298022e6ea4d 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -402,61 +402,73 @@ public class Notification implements Parcelable /** * Notification category: incoming call (voice or video) or similar synchronous communication request. + * @hide */ public static final String CATEGORY_CALL = "call"; /** * Notification category: incoming direct message (SMS, instant message, etc.). + * @hide */ public static final String CATEGORY_MESSAGE = "msg"; /** * Notification category: asynchronous bulk message (email). + * @hide */ public static final String CATEGORY_EMAIL = "email"; /** * Notification category: calendar event. + * @hide */ public static final String CATEGORY_EVENT = "event"; /** * Notification category: promotion or advertisement. + * @hide */ public static final String CATEGORY_PROMO = "promo"; /** * Notification category: alarm or timer. + * @hide */ public static final String CATEGORY_ALARM = "alarm"; /** * Notification category: progress of a long-running background operation. + * @hide */ public static final String CATEGORY_PROGRESS = "progress"; /** * Notification category: social network or sharing update. + * @hide */ public static final String CATEGORY_SOCIAL = "social"; /** * Notification category: error in background operation or authentication status. + * @hide */ public static final String CATEGORY_ERROR = "err"; /** * Notification category: media transport control for playback. + * @hide */ public static final String CATEGORY_TRANSPORT = "transport"; /** * Notification category: system or device status update. Reserved for system use. + * @hide */ public static final String CATEGORY_SYSTEM = "sys"; /** * Notification category: indication of running background service. + * @hide */ public static final String CATEGORY_SERVICE = "service"; @@ -464,17 +476,20 @@ public class Notification implements Parcelable * Notification category: a specific, timely recommendation for a single thing. * For example, a news app might want to recommend a news story it believes the user will * want to read next. + * @hide */ public static final String CATEGORY_RECOMMENDATION = "recommendation"; /** * Notification category: ongoing information about device or contextual status. + * @hide */ public static final String CATEGORY_STATUS = "status"; /** * One of the predefined notification categories (see the <code>CATEGORY_*</code> constants) * that best describes this Notification. May be used by the system for ranking and filtering. + * @hide */ public String category; @@ -1611,6 +1626,7 @@ public class Notification implements Parcelable * Set the notification category. * * @see Notification#category + * @hide */ public Builder setCategory(String category) { mCategory = category; |
