diff options
author | Diksha Gohlyan <dikshag@google.com> | 2020-12-18 16:14:05 -0800 |
---|---|---|
committer | Diksha Gohlyan <dikshag@google.com> | 2020-12-18 16:14:13 -0800 |
commit | f2125e05a9a40f16ef937ee1c4e9fd16a93275c9 (patch) | |
tree | 01006854a2844260b90a9828df8cec138e598020 /src | |
parent | e23ea78e6dd67c150d85f77b6f5cf6658c290a06 (diff) | |
download | platform_packages_apps_DocumentsUI-f2125e05a9a40f16ef937ee1c4e9fd16a93275c9.tar.gz platform_packages_apps_DocumentsUI-f2125e05a9a40f16ef937ee1c4e9fd16a93275c9.tar.bz2 platform_packages_apps_DocumentsUI-f2125e05a9a40f16ef937ee1c4e9fd16a93275c9.zip |
Refresh after sd card is formatted
Fixes: 175527664
Test: atest DocumentsUIGoogleTests
Change-Id: Ia0d5dd8fb45e8421b3112a5cb964d490958e301e
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/documentsui/dirlist/DirectoryFragment.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/documentsui/dirlist/DirectoryFragment.java b/src/com/android/documentsui/dirlist/DirectoryFragment.java index a079ab1b8..41fe766ce 100644 --- a/src/com/android/documentsui/dirlist/DirectoryFragment.java +++ b/src/com/android/documentsui/dirlist/DirectoryFragment.java @@ -586,6 +586,9 @@ public class DirectoryFragment extends Fragment implements SwipeRefreshLayout.On // Add listener to update contents on sort model change mState.sortModel.addListener(mSortListener); + // After SD card is formatted, we go out of the view and come back. Similarly when users + // go out of the app to delete some files, we want to refresh the directory. + onRefresh(); } @Override |