diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index 45f4a00d2..06d0a1108 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -141,7 +141,8 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View } 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?) {