mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-16 20:10:37 +01:00
catch exceptions thrown at ViewPagerActivity
This commit is contained in:
parent
2c2ae9b6c4
commit
188e2f1254
@ -91,8 +91,14 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||||||
cursor?.close()
|
cursor?.close()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
mPath = intent.getStringExtra(MEDIUM)
|
try {
|
||||||
mShowAll = config.showAll
|
mPath = intent.getStringExtra(MEDIUM)
|
||||||
|
mShowAll = config.showAll
|
||||||
|
} catch (e: Exception) {
|
||||||
|
showErrorToast(e)
|
||||||
|
finish()
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mPath.isEmpty()) {
|
if (mPath.isEmpty()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user