Merge "Hide eject icon of removable media when it's emulated volume" am: 7f656092df

am: 0fe81d7320

Change-Id: Ia2b865c56a92265151444b4b7310b61c51a9a952
This commit is contained in:
Jeff Sharkey
2018-12-05 08:38:43 -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;
}