Merge "It helps to catch the right exception." into jb-mr2-dev

This commit is contained in:
Jeff Sharkey
2013-03-26 17:29:43 +00:00
committed by Android (Google) Code Review

View File

@@ -1603,7 +1603,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) {