DO NOT MERGE MountService: Fix running media scanner at boot.

Change-Id: I67ff2ccde7e03143167b8c59726ffb741c96e028
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
Mike Lockwood
2011-04-05 10:21:51 -04:00
parent b9135638c5
commit 91dd02c340

View File

@@ -487,6 +487,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.