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

Commit a6a72814 authored by San Mehat's avatar San Mehat
Browse files

Environment: Catch *all* exceptions from MountService



Signed-off-by: default avatarSan Mehat <san@google.com>
parent edc5189c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -181,7 +181,7 @@ public class Environment {
                                                         .getService("mount"));
            }
            return mMntSvc.getVolumeState(getExternalStorageDirectory().toString());
        } catch (android.os.RemoteException rex) {
        } catch (Exception rex) {
            return Environment.MEDIA_REMOVED;
        }
    }