commit | cd8573f3e1c82d85e28435799537ecbc26352276 | [log] [tgz] |
---|---|---|
author | hoffc <quic_hoffc@quicinc.com> | Thu Feb 13 07:37:33 2025 -0800 |
committer | Shubhi Saxena <shubhisaxena@google.com> | Thu Feb 13 07:39:58 2025 -0800 |
tree | 26279649d9059a924549fc69dd544af738b6fb48 | |
parent | c66d7bdcf3c582da2e62af81cef04360bd735126 [diff] |
Fix private volume UI items incorrectly displayed for public volume The loading of private volume UI items is async, these private volume UI items should not be displayed if user has switched to public volume. Limit private volume UI items only visible for private volume. Bug: 396043608 (cherry picked from https://android-review.googlesource.com/q/commit:1bfb959c1f14226231145a24624731650278af3a) Merged-In: I5ea5cfb5d73f74cae33d780ed1f7f04fba870e32 Change-Id: I5ea5cfb5d73f74cae33d780ed1f7f04fba870e32 Flag: EXEMPT bug fix
diff --git a/src/com/android/settings/deviceinfo/storage/StorageItemPreferenceController.java b/src/com/android/settings/deviceinfo/storage/StorageItemPreferenceController.java index c0caff7..cb8e6fc 100644 --- a/src/com/android/settings/deviceinfo/storage/StorageItemPreferenceController.java +++ b/src/com/android/settings/deviceinfo/storage/StorageItemPreferenceController.java
@@ -475,7 +475,10 @@ updatePrivateStorageCategoryPreferencesOrder(); mIsPreferenceOrderedBySize = true; } - setPrivateStorageCategoryPreferencesVisibility(true); + + if (isValidPrivateVolume()) { + setPrivateStorageCategoryPreferencesVisibility(true); + } } private StorageCacheHelper.StorageCache getSizeInfo(