Merge "Use explicit intent for MediaScannerConnection" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ee9d443842
@@ -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