From 1a25eee609eff4685713f20480ea898861036053 Mon Sep 17 00:00:00 2001 From: nadlabak Date: Tue, 28 Sep 2010 03:57:19 -0700 Subject: [PATCH] Let a part of the storage notifications to be handled by Usb.apk --- .../java/com/android/server/status/StorageNotification.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/java/com/android/server/status/StorageNotification.java b/services/java/com/android/server/status/StorageNotification.java index 8da8cd357cace..02341046f7976 100644 --- a/services/java/com/android/server/status/StorageNotification.java +++ b/services/java/com/android/server/status/StorageNotification.java @@ -47,7 +47,8 @@ public class StorageNotification extends StorageEventListener { private static final String TAG = "StorageNotification"; - private static final boolean POP_UMS_ACTIVITY_ON_CONNECT = true; + private static final boolean POP_UMS_ACTIVITY_ON_CONNECT = false; + private static final boolean UMS_NOTIFICATION_VISIBLE = false; /** * Binder context for this service @@ -275,6 +276,7 @@ void updateUsbMassStorageNotification(boolean available) { private synchronized void setUsbStorageNotification(int titleId, int messageId, int icon, boolean sound, boolean visible, PendingIntent pi) { + visible = visible && UMS_NOTIFICATION_VISIBLE; if (!visible && mUsbStorageNotification == null) { return; }