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