OSDN Git Service

am 4f852565: am 42a5183f: am 568a8cf9: Dismiss MTP notification on device disconnect
authorBobby Georgescu <georgescu@google.com>
Mon, 29 Apr 2013 18:22:11 +0000 (11:22 -0700)
committerAndroid Git Automerger <android-git-automerger@android.com>
Mon, 29 Apr 2013 18:22:11 +0000 (11:22 -0700)
* commit '4f8525654b6595569a533724c7427a4cf0566ffb':
  Dismiss MTP notification on device disconnect

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);
         }
     }