Use explicit intent for MediaScannerConnection
b/10278751 Change-Id: I3fbc2b935a4fe6ec449c4bbf79400d4b48e613f7
This commit is contained in:
@@ -113,6 +113,9 @@ public class MediaScannerConnection implements ServiceConnection {
|
||||
synchronized (this) {
|
||||
if (!mConnected) {
|
||||
Intent intent = new Intent(IMediaScannerService.class.getName());
|
||||
intent.setComponent(
|
||||
new ComponentName("com.android.providers.media",
|
||||
"com.android.providers.media.MediaScannerService"));
|
||||
mContext.bindService(intent, this, Context.BIND_AUTO_CREATE);
|
||||
mConnected = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user