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,13 +182,17 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
|
|||||||
bottom_delete.beGone()
|
bottom_delete.beGone()
|
||||||
|
|
||||||
bottom_edit.setOnClickListener {
|
bottom_edit.setOnClickListener {
|
||||||
|
if (mUri != null) {
|
||||||
openEditor(mUri!!.toString())
|
openEditor(mUri!!.toString())
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bottom_share.setOnClickListener {
|
bottom_share.setOnClickListener {
|
||||||
|
if (mUri != null) {
|
||||||
sharePath(mUri!!.toString())
|
sharePath(mUri!!.toString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun fragmentClicked() {
|
override fun fragmentClicked() {
|
||||||
mIsFullScreen = !mIsFullScreen
|
mIsFullScreen = !mIsFullScreen
|
||||||
|
Reference in New Issue
Block a user