recheck if the opened photo still exists

This commit is contained in:
tibbi 2016-03-29 10:57:49 +02:00
parent 4c8f2293f5
commit 842776cedf

View file

@ -57,6 +57,7 @@ public class ViewPagerActivity extends AppCompatActivity
hideSystemUI(); hideSystemUI();
path = getIntent().getStringExtra(Constants.PHOTO); path = getIntent().getStringExtra(Constants.PHOTO);
MediaScannerConnection.scanFile(this, new String[]{path}, null, this);
directory = new File(path).getParent(); directory = new File(path).getParent();
pager = (MyViewPager) findViewById(R.id.view_pager); pager = (MyViewPager) findViewById(R.id.view_pager);
photos = getPhotos(); photos = getPhotos();