Skip to content

Commit

Permalink
Let a part of the storage notifications to be handled by Usb.apk
Browse files Browse the repository at this point in the history
  • Loading branch information
nadlabak committed Sep 28, 2010
1 parent db7f51b commit 1a25eee
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 1a25eee

Please sign in to comment.