From 800152033e198a9b71dde485af6a4d4047dec72e Mon Sep 17 00:00:00 2001 From: Ramneek Kalra Date: Thu, 5 May 2022 17:54:07 +0800 Subject: [PATCH] [ALPSxxxxxxxx] Storage view is white and cannot show any info Storage view is white and cannot show any info while plug in/out u disk because the visibility of list view is gone. This visibility is set when StorageDashboardFragment.java sets loading using API setLoading. In error condition setloading was not called due to conditional statement. After removing the conditional statement, it sets loading through which visibility of the list view is set to VISIBLE. 1. Enter Settings->Storage 2. Plug in U-disk, storage view will start updating 3. During storage view updating, plug out U-disk(before phone recognized and show U-disk) Fix: Bug: Test: Change-Id: Id7350909b614bbe9264910cab3cdeca616544618 CR-Id: Feature: --- .../android/settings/deviceinfo/StorageDashboardFragment.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/com/android/settings/deviceinfo/StorageDashboardFragment.java b/src/com/android/settings/deviceinfo/StorageDashboardFragment.java index 49039480daf..3760ab56081 100644 --- a/src/com/android/settings/deviceinfo/StorageDashboardFragment.java +++ b/src/com/android/settings/deviceinfo/StorageDashboardFragment.java @@ -361,9 +361,7 @@ public class StorageDashboardFragment extends DashboardFragment return; } - if (getView().findViewById(R.id.loading_container).getVisibility() == View.VISIBLE) { - setLoading(false /* loading */, true /* animate */); - } + setLoading(false /* loading */, true /* animate */); final long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; mPreferenceController.setVolume(mSelectedStorageEntry.getVolumeInfo());