Merge "Hide eject icon of removable media when it's emulated volume"

am: 7f656092df

Change-Id: Icf28f47946aeb9f808041b90893c3543f270f692
This commit is contained in:
Jeff Sharkey
2018-12-05 08:30:33 -08:00
committed by android-build-merger

View File

@@ -222,7 +222,7 @@ public class ExternalStorageProvider extends FileSystemProvider {
root.flags |= Root.FLAG_REMOVABLE_USB;
}
if (!VolumeInfo.ID_EMULATED_INTERNAL.equals(volume.getId())) {
if (volume.getType() != VolumeInfo.TYPE_EMULATED) {
root.flags |= Root.FLAG_SUPPORTS_EJECT;
}