diff options
author | Mike Lockwood <lockwood@android.com> | 2011-04-05 12:41:47 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-04-05 12:41:47 -0700 |
commit | 772a3b310620b30a1a02f38678c223bb3993d6ba (patch) | |
tree | 49a2301f9dad719e289fab12faf1cbfe04a39cc9 /services | |
parent | aefb1ea5b08a612da42e852366acfedcb802a6fd (diff) | |
parent | 80e0a416a6f8d70d3f55614695fb430f914371bc (diff) | |
download | frameworks_base-772a3b310620b30a1a02f38678c223bb3993d6ba.zip frameworks_base-772a3b310620b30a1a02f38678c223bb3993d6ba.tar.gz frameworks_base-772a3b310620b30a1a02f38678c223bb3993d6ba.tar.bz2 |
Merge "MountService: Fix running media scanner at boot."
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/MountService.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/services/java/com/android/server/MountService.java b/services/java/com/android/server/MountService.java index 3257c26..c18ccc8 100644 --- a/services/java/com/android/server/MountService.java +++ b/services/java/com/android/server/MountService.java @@ -491,6 +491,13 @@ class MountService extends IMountService.Stub implements INativeDaemonConnectorC } } + /* notify external storage has mounted to trigger media scanner */ + if (mEmulateExternalStorage) { + notifyVolumeStateChange(null, + Environment.getExternalStorageDirectory().getPath(), + VolumeState.NoMedia, VolumeState.Mounted); + } + /* * If UMS was connected on boot, send the connected event * now that we're up. |