rescan all files only at pull to refresh

This commit is contained in:
tibbi 2016-08-24 23:48:48 +02:00
parent ea9e43c00b
commit 3a515e5844
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}