Merge "Fix com.android.settings.deviceinfo.storage.StorageEntryTest" into sc-dev
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