Show even fewer notifications in Setup.
Restricting to pkg="android" didn't filter out things like open wifi networks, etc. So now we have a whitelist: notifications must be sent the "android" pseudo-package, *and* they must have one of these "kind" tags: - android.system.imeswitcher (IME switcher, needed by SUW) - android.system.update (OTAs) Note that OTAs currently use a fullScreenIntent, so they bypass this logic anyway, but for consistency's sake we now allow OTA icons in the status bar explicitly. Bug: 6645469 Change-Id: Ib2e2f22d7a0817a1acaf8137ed4f3c7d3ddf8af5
This commit is contained in:
@@ -586,6 +586,10 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
|
||||
mImeSwitcherNotification.defaults = 0; // please be quiet
|
||||
mImeSwitcherNotification.sound = null;
|
||||
mImeSwitcherNotification.vibrate = null;
|
||||
|
||||
// Tag this notification specially so SystemUI knows it's important
|
||||
mImeSwitcherNotification.kind = new String[] { "android.system.imeswitcher" };
|
||||
|
||||
Intent intent = new Intent(Settings.ACTION_SHOW_INPUT_METHOD_PICKER);
|
||||
mImeSwitchPendingIntent = PendingIntent.getBroadcast(mContext, 0, intent, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user