Fix 'Documents & other' missing problem

Should check if 'Documents & other' is visible
when mVolume is updated.

Bug: 230215783
Test: manual visual
      Settings -> Storage
Change-Id: Ife36b71bee66ff16802e352785824e10c17dceb8
This commit is contained in:
Arc Wang
2022-04-24 15:30:16 +08:00
parent fd7153ed39
commit 03b1b23c74

View File

@@ -234,7 +234,9 @@ public class StorageItemPreferenceController extends AbstractPreferenceControlle
// If isValidPrivateVolume() is true, these preferences will become visible at
// onLoadFinished.
if (!isValidPrivateVolume()) {
if (isValidPrivateVolume()) {
mIsDocumentsPrefShown = isDocumentsPrefShown();
} else {
setPrivateStorageCategoryPreferencesVisibility(false);
}
}