diff options
author | John Spurlock <jspurlock@google.com> | 2014-03-18 16:41:57 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2014-03-21 09:25:00 -0400 |
commit | fd7f1e00399e53a392941928ed5a55ca77b1b721 (patch) | |
tree | 80d8e304e1dd8604bc8c1bb91289db2c0ad087ad /packages/SystemUI/src/com | |
parent | e003e7e8ca0bd697838ce48700d3fee8faf5110d (diff) | |
download | frameworks_base-fd7f1e00399e53a392941928ed5a55ca77b1b721.zip frameworks_base-fd7f1e00399e53a392941928ed5a55ca77b1b721.tar.gz frameworks_base-fd7f1e00399e53a392941928ed5a55ca77b1b721.tar.bz2 |
Unhide notification category.
Rename @hidden Notification.kind -> category, and flesh out
shared values. Now a single value.
Update framework references, remove unused SystemUpdateService
magic value unused since 2012.
Change-Id: If06d19ff3a8c3125fca1457f5d3c665e2939c66c
Diffstat (limited to 'packages/SystemUI/src/com')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java index bd36128..6eb2ebe 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java @@ -1521,17 +1521,8 @@ public abstract class BaseStatusBar extends SystemUI implements // A: Almost none! Only things coming from the system (package is "android") that also // have special "kind" tags marking them as relevant for setup (see below). protected boolean showNotificationEvenIfUnprovisioned(StatusBarNotification sbn) { - if ("android".equals(sbn.getPackageName())) { - if (sbn.getNotification().kind != null) { - for (String aKind : sbn.getNotification().kind) { - // IME switcher, created by InputMethodManagerService - if ("android.system.imeswitcher".equals(aKind)) return true; - // OTA availability & errors, created by SystemUpdateService - if ("android.system.update".equals(aKind)) return true; - } - } - } - return false; + return "android".equals(sbn.getPackageName()) + && sbn.getNotification().extras.getBoolean(Notification.EXTRA_ALLOW_DURING_SETUP); } public boolean inKeyguardRestrictedInputMode() { |