mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
rescan all files only at pull to refresh
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user