mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-18 06:17:59 +01:00
add a null check before displaying properties dialog
This commit is contained in:
parent
40ec71c5c2
commit
876f81c0e7
1 changed files with 2 additions and 1 deletions
|
@ -141,7 +141,8 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun showProperties() {
|
private fun showProperties() {
|
||||||
PropertiesDialog(this, getCurrentFile().absolutePath, false)
|
if (getCurrentMedium() != null)
|
||||||
|
PropertiesDialog(this, getCurrentMedium()!!.path, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
|
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
|
||||||
|
|
Loading…
Reference in a new issue