Merge "Environment: Catch *all* exceptions from MountService"

This commit is contained in:
San Mehat
2010-01-08 07:19:56 -08:00
committed by Android (Google) Code Review

View File

@@ -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;
}
}