mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
adding some null checks
This commit is contained in:
@ -182,11 +182,15 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
|
|||||||
bottom_delete.beGone()
|
bottom_delete.beGone()
|
||||||
|
|
||||||
bottom_edit.setOnClickListener {
|
bottom_edit.setOnClickListener {
|
||||||
openEditor(mUri!!.toString())
|
if (mUri != null) {
|
||||||
|
openEditor(mUri!!.toString())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bottom_share.setOnClickListener {
|
bottom_share.setOnClickListener {
|
||||||
sharePath(mUri!!.toString())
|
if (mUri != null) {
|
||||||
|
sharePath(mUri!!.toString())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user