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

Commit ba9708e3 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android Git Automerger
Browse files

am ee9d4438: Merge "Use explicit intent for MediaScannerConnection" into klp-dev

* commit 'ee9d4438':
  Use explicit intent for MediaScannerConnection
parents 59d234e7 ee9d4438
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;
            }