am 7e9221c5: Merge "It helps to catch the right exception." into jb-mr2-dev
* commit '7e9221c5548b711bb083589d2c0d32eb6cf2fb8d': It helps to catch the right exception.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user