am 54973710: Merge "Environment.isExternalStorageRemovable() is false if external storage is emulated" into honeycomb
* commit '54973710d769e4722dc21778f8fcb7b08d2872dd': Environment.isExternalStorageRemovable() is false if external storage is emulated
This commit is contained in:
@@ -416,6 +416,7 @@ public class Environment {
|
|||||||
* <p>See {@link #getExternalStorageDirectory()} for more information.
|
* <p>See {@link #getExternalStorageDirectory()} for more information.
|
||||||
*/
|
*/
|
||||||
public static boolean isExternalStorageRemovable() {
|
public static boolean isExternalStorageRemovable() {
|
||||||
|
if (isExternalStorageEmulated()) return false;
|
||||||
return Resources.getSystem().getBoolean(
|
return Resources.getSystem().getBoolean(
|
||||||
com.android.internal.R.bool.config_externalStorageRemovable);
|
com.android.internal.R.bool.config_externalStorageRemovable);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user