mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-29 07:57:59 +01:00
recheck if the opened photo still exists
This commit is contained in:
parent
4c8f2293f5
commit
842776cedf
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue