mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 12:38:00 +01:00
rescan all files only at pull to refresh
This commit is contained in:
parent
ea9e43c00b
commit
3a515e5844
1 changed files with 1 additions and 2 deletions
|
@ -112,8 +112,6 @@ public class MediaActivity extends SimpleActivity
|
|||
return;
|
||||
}
|
||||
|
||||
rescanDirectory();
|
||||
|
||||
mMedia = newMedia;
|
||||
if (isDirEmpty())
|
||||
return;
|
||||
|
@ -444,6 +442,7 @@ public class MediaActivity extends SimpleActivity
|
|||
|
||||
@Override
|
||||
public void onRefresh() {
|
||||
rescanDirectory();
|
||||
initializeGallery();
|
||||
mSwipeRefreshLayout.setRefreshing(false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue