mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 04:20:38 +01:00
dont do anything if an action menu is clicked at photoVideoActivity without media
This commit is contained in:
parent
7772577883
commit
68c6186fa7
@ -136,6 +136,9 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||||
|
if (mMedium == null)
|
||||||
|
return true
|
||||||
|
|
||||||
when (item.itemId) {
|
when (item.itemId) {
|
||||||
R.id.menu_set_as_wallpaper -> trySetAsWallpaper(File(mMedium!!.path))
|
R.id.menu_set_as_wallpaper -> trySetAsWallpaper(File(mMedium!!.path))
|
||||||
R.id.menu_open_with -> openWith(File(mMedium!!.path))
|
R.id.menu_open_with -> openWith(File(mMedium!!.path))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user