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;
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue