OSDN Git Service

Dismiss MTP notification on device disconnect
authorBobby Georgescu <georgescu@google.com>
Fri, 26 Apr 2013 22:07:01 +0000 (15:07 -0700)
committerBobby Georgescu <georgescu@google.com>
Fri, 26 Apr 2013 22:07:01 +0000 (15:07 -0700)
Bug: 8158516
Change-Id: I7d7fd78b5fb9dc199e9ecdd78440e0f8147fe58d

src/com/android/gallery3d/ingest/IngestService.java

index 28d7211..05cc6f9 100644 (file)
@@ -196,6 +196,7 @@ public class IngestService extends Service implements ImportTask.Listener,
         if (device == mDevice) {
             setDevice(null);
             mNeedRelaunchNotification = false;
+            mNotificationManager.cancel(NotificationIds.INGEST_NOTIFICATION_SCANNING);
         }
     }