Merge "Disable eject button for StubVolumes" am: fef33579a6

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1914530

Change-Id: I622f12df0a4ef78162611c0cc05fcbe4bfbe44a4
This commit is contained in:
Treehugger Robot
2022-01-21 06:42:56 +00:00
committed by Automerger Merge Worker

View File

@@ -236,7 +236,8 @@ public class ExternalStorageProvider extends FileSystemProvider {
root.flags |= Root.FLAG_REMOVABLE_USB; 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; root.flags |= Root.FLAG_SUPPORTS_EJECT;
} }