Merge "Fix com.android.settings.deviceinfo.storage.StorageEntryTest" into sc-dev am: aed1bba60a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14029456 Change-Id: I3a382089a60bc5c036d7e5d2fee85ddff03de68f
This commit is contained in:
@@ -236,14 +236,6 @@ public class StorageEntry implements Comparable<StorageEntry>, Parcelable {
|
||||
return mVolumeInfo == null ? false : mVolumeInfo.getType() == VolumeInfo.TYPE_PUBLIC;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stub volume is a volume that is maintained by external party such as the ChromeOS processes
|
||||
* in ARC++.
|
||||
*/
|
||||
public boolean isStub() {
|
||||
return mVolumeInfo == null ? false : mVolumeInfo.getType() == VolumeInfo.TYPE_STUB;
|
||||
}
|
||||
|
||||
/** Returns description. */
|
||||
public String getDescription() {
|
||||
if (isVolumeInfo()) {
|
||||
|
||||
@@ -230,6 +230,8 @@ public class StorageItemPreferenceController extends AbstractPreferenceControlle
|
||||
}
|
||||
|
||||
private boolean isValidPublicVolume() {
|
||||
// Stub volume is a volume that is maintained by external party such as the ChromeOS
|
||||
// processes in ARC++.
|
||||
return mVolume != null
|
||||
&& (mVolume.getType() == VolumeInfo.TYPE_PUBLIC
|
||||
|| mVolume.getType() == VolumeInfo.TYPE_STUB)
|
||||
|
||||
Reference in New Issue
Block a user