rescan all files only at pull to refresh
This commit is contained in:
parent
ea9e43c00b
commit
3a515e5844
|
@ -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 New Issue