NotificationManagerService: Add a listener for storage events

Signed-off-by: San Mehat <san@google.com>
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java
index d989b6b..80fd51f 100755
--- a/services/java/com/android/server/NotificationManagerService.java
+++ b/services/java/com/android/server/NotificationManagerService.java
@@ -50,6 +50,7 @@
 import android.os.Power;
 import android.os.Process;
 import android.os.RemoteException;
+import android.storage.StorageManager;
 import android.os.SystemProperties;
 import android.os.Vibrator;
 import android.provider.Settings;
@@ -406,6 +407,10 @@
         mSound.setUsesWakeLock(context);
         mToastQueue = new ArrayList<ToastRecord>();
         mHandler = new WorkerHandler();
+
+        StorageManager sm = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE);
+        sm.registerListener(new com.android.internal.app.StorageNotification(context));
+
         mStatusBarService = statusBar;
         statusBar.setNotificationCallbacks(mNotificationCallbacks);