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

Commit 80e0a416 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

MountService: Fix running media scanner at boot.



Change-Id: Ibd1111b7ec6380011cd10a56f11f891f2e16abc2
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 84338c45
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -491,6 +491,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.