Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7bcf195 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Use explicit intent for MediaScannerConnection

b/10278751

Change-Id: I3fbc2b935a4fe6ec449c4bbf79400d4b48e613f7
parent 59210de1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
            }