mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-05 12:57:35 +01:00
adding some null checks
This commit is contained in:
parent
2c9103f323
commit
28f7d4eb6c
@ -182,11 +182,15 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
|
||||
bottom_delete.beGone()
|
||||
|
||||
bottom_edit.setOnClickListener {
|
||||
openEditor(mUri!!.toString())
|
||||
if (mUri != null) {
|
||||
openEditor(mUri!!.toString())
|
||||
}
|
||||
}
|
||||
|
||||
bottom_share.setOnClickListener {
|
||||
sharePath(mUri!!.toString())
|
||||
if (mUri != null) {
|
||||
sharePath(mUri!!.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user