mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
catch exceptions thrown at ViewPagerActivity
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user