From 842776cedfa709eb3363b5126af0de404c350fc7 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 29 Mar 2016 10:57:49 +0200 Subject: [PATCH] recheck if the opened photo still exists --- .../simplemobiletools/gallery/activities/ViewPagerActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java index 4af2a2a44..0e47430b8 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/ViewPagerActivity.java @@ -57,6 +57,7 @@ public class ViewPagerActivity extends AppCompatActivity hideSystemUI(); path = getIntent().getStringExtra(Constants.PHOTO); + MediaScannerConnection.scanFile(this, new String[]{path}, null, this); directory = new File(path).getParent(); pager = (MyViewPager) findViewById(R.id.view_pager); photos = getPhotos();