Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d24047fd authored by Youkichi Hosoi's avatar Youkichi Hosoi
Browse files

Disable eject button for StubVolumes

StubVolumes are managed from outside Android (e.g. Chrome OS). So, they
should not be unmounted via the eject button in DocumentsUI.

Bug: 187111763
Test: (Tested in R) Manually check and confirm that the eject button is
      not shown for mounted StubVolumes.

Change-Id: Ie7c6d1ec846b20694d98f4cb34099ad5dfcf6478
parent 2453899e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -236,7 +236,8 @@ public class ExternalStorageProvider extends FileSystemProvider {
                root.flags |= Root.FLAG_REMOVABLE_USB;
            }

            if (volume.getType() != VolumeInfo.TYPE_EMULATED) {
            if (volume.getType() != VolumeInfo.TYPE_EMULATED
                    && volume.getType() != VolumeInfo.TYPE_STUB) {
                root.flags |= Root.FLAG_SUPPORTS_EJECT;
            }