Merge "Disable eject button for StubVolumes" am: fef33579a6 am: e817b6d6e7 am: 2ab139414a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1914530 Change-Id: I0e2aee7f15f844c39ea336be8e5dd8720ab480e4
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