Merge "Disable eject button for StubVolumes" am: fef33579a6 am: e817b6d6e7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1914530 Change-Id: Ib799251675ee428e38f4b9f28c5551450a1892b5
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user