mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
catch exceptions thrown at ViewPagerActivity
This commit is contained in:
parent
2c2ae9b6c4
commit
188e2f1254
1 changed files with 8 additions and 2 deletions
|
@ -91,8 +91,14 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||
cursor?.close()
|
||||
}
|
||||
} else {
|
||||
mPath = intent.getStringExtra(MEDIUM)
|
||||
mShowAll = config.showAll
|
||||
try {
|
||||
mPath = intent.getStringExtra(MEDIUM)
|
||||
mShowAll = config.showAll
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
finish()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if (mPath.isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue