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; return;
} }
rescanDirectory();
mMedia = newMedia; mMedia = newMedia;
if (isDirEmpty()) if (isDirEmpty())
return; return;
@ -444,6 +442,7 @@ public class MediaActivity extends SimpleActivity
@Override @Override
public void onRefresh() { public void onRefresh() {
rescanDirectory();
initializeGallery(); initializeGallery();
mSwipeRefreshLayout.setRefreshing(false); mSwipeRefreshLayout.setRefreshing(false);
} }