Merge "Environment.isExternalStorageRemovable() is false if external storage is emulated" into honeycomb

This commit is contained in:
Mike Lockwood
2011-01-19 10:40:56 -08:00
committed by Android (Google) Code Review

View File

@@ -416,6 +416,7 @@ public class Environment {
* <p>See {@link #getExternalStorageDirectory()} for more information.
*/
public static boolean isExternalStorageRemovable() {
if (isExternalStorageEmulated()) return false;
return Resources.getSystem().getBoolean(
com.android.internal.R.bool.config_externalStorageRemovable);
}