Merge "Environment.isExternalStorageRemovable() is false if external storage is emulated" into honeycomb
This commit is contained in:
committed by
Android (Google) Code Review
commit
54973710d7
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user