Merge "Fix private volume UI items incorrectly displayed for public volume" into main

This commit is contained in:
Shubhi Saxena
2025-02-14 03:05:27 -08:00
committed by Android (Google) Code Review

View File

@@ -475,8 +475,11 @@ public class StorageItemPreferenceController extends AbstractPreferenceControlle
updatePrivateStorageCategoryPreferencesOrder(); updatePrivateStorageCategoryPreferencesOrder();
mIsPreferenceOrderedBySize = true; mIsPreferenceOrderedBySize = true;
} }
if (isValidPrivateVolume()) {
setPrivateStorageCategoryPreferencesVisibility(true); setPrivateStorageCategoryPreferencesVisibility(true);
} }
}
private StorageCacheHelper.StorageCache getSizeInfo( private StorageCacheHelper.StorageCache getSizeInfo(
SparseArray<StorageAsyncLoader.StorageResult> result, int userId) { SparseArray<StorageAsyncLoader.StorageResult> result, int userId) {