Should not show loading animation after size loading complete

SettingsPreferenceFragment#setLoading(boolean loading, boolean animate)
shows loading animation when 'animate' parameter is true.

This change sets 'animate' parameter false to fix this issue.

Bug: 254003456
Test: manual visual
      Settings -> Storage -> Free up space -> back
      then see if loading animation shows.
Change-Id: Ic804bcf950a9c57297ccefd6e942edea0b792a3b
This commit is contained in:
Arc Wang
2022-11-18 17:33:10 +08:00
parent 12d4b78473
commit ccf4fa052a
2 changed files with 2 additions and 5 deletions

View File

@@ -385,7 +385,7 @@ public class StorageDashboardFragment extends DashboardFragment
return;
}
setLoading(false /* loading */, true /* animate */);
setLoading(false /* loading */, false /* animate */);
final long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes;
mPreferenceController.setVolume(mSelectedStorageEntry.getVolumeInfo());