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

Commit d9fe2934 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Jean-Baptiste Queru
Browse files

It helps to catch the right exception.

Bug: 7238149
Change-Id: I7b60ec44d1d1d5ece8a871cb089f811b611f4a4a
parent 2aee33c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1577,7 +1577,7 @@ class MountService extends IMountService.Stub
            boolean mounted = false;
            try {
                mounted = Environment.MEDIA_MOUNTED.equals(getVolumeState(primary.getPath()));
            } catch (IllegalStateException e) {
            } catch (IllegalArgumentException e) {
            }

            if (!mounted) {