Permalink
Browse files

Let a part of the storage notifications to be handled by Usb.apk

  • Loading branch information...
nadlabak committed Sep 28, 2010
1 parent db7f51b commit 1a25eee609eff4685713f20480ea898861036053
Showing with 3 additions and 1 deletion.
  1. +3 −1 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;
}

0 comments on commit 1a25eee

Please sign in to comment.