show Properties button at PhotoVideoActivity only with file content uri
This commit is contained in:
parent
809d9b81a2
commit
972a1d4a39
1 changed files with 2 additions and 2 deletions
|
@ -117,8 +117,8 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
|
|||
menuInflater.inflate(R.menu.photo_video_menu, menu)
|
||||
|
||||
menu.findItem(R.id.menu_set_as).isVisible = mMedium?.isImage() == true
|
||||
menu.findItem(R.id.menu_edit).isVisible = mMedium?.isImage() == true
|
||||
menu.findItem(R.id.menu_edit).isVisible = mUri?.scheme == "file"
|
||||
menu.findItem(R.id.menu_edit).isVisible = mMedium?.isImage() == true && mUri?.scheme == "file"
|
||||
menu.findItem(R.id.menu_properties).isVisible = mUri?.scheme == "file"
|
||||
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue