diff options
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 |