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();