diff options
author | John Spurlock <jspurlock@google.com> | 2015-03-20 20:20:08 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-20 20:20:09 +0000 |
commit | 606f1c9c9dd67959208c80fd320dd204020a6926 (patch) | |
tree | 8c50b712892d7c27dfc7cdd1cefc4c6442a09e40 /core/java/android/app/Notification.java | |
parent | a81c231d31d8432ddab32a4e46fc3264932f88b2 (diff) | |
parent | 1d881a1e986c706963c254fbe2b6296a1cd10b75 (diff) | |
download | frameworks_base-606f1c9c9dd67959208c80fd320dd204020a6926.zip frameworks_base-606f1c9c9dd67959208c80fd320dd204020a6926.tar.gz frameworks_base-606f1c9c9dd67959208c80fd320dd204020a6926.tar.bz2 |
Merge "HUN: Implement per-package config."
Diffstat (limited to 'core/java/android/app/Notification.java')
-rw-r--r-- | core/java/android/app/Notification.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index b824e97..b31ce04 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -1840,6 +1840,26 @@ public class Notification implements Parcelable } /** + * {@hide} + */ + public static String priorityToString(@Priority int pri) { + switch (pri) { + case PRIORITY_MIN: + return "MIN"; + case PRIORITY_LOW: + return "LOW"; + case PRIORITY_DEFAULT: + return "DEFAULT"; + case PRIORITY_HIGH: + return "HIGH"; + case PRIORITY_MAX: + return "MAX"; + default: + return "UNKNOWN(" + String.valueOf(pri) + ")"; + } + } + + /** * @hide */ public boolean isValid() { |