From 3a515e5844284b0d4037de320132e04b9ebc12ab Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 24 Aug 2016 23:48:48 +0200 Subject: [PATCH] rescan all files only at pull to refresh --- .../simplemobiletools/gallery/activities/MediaActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/MediaActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/MediaActivity.java index 3682dadc0..5e0656d6a 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/MediaActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/MediaActivity.java @@ -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); }