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:
@@ -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