show Properties button at PhotoVideoActivity only with file content uri

This commit is contained in:
tibbi 2017-10-29 12:51:04 +01:00
parent 809d9b81a2
commit 972a1d4a39

View file

@ -117,8 +117,8 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList
menuInflater.inflate(R.menu.photo_video_menu, menu) menuInflater.inflate(R.menu.photo_video_menu, menu)
menu.findItem(R.id.menu_set_as).isVisible = mMedium?.isImage() == true 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 = mMedium?.isImage() == true && mUri?.scheme == "file"
menu.findItem(R.id.menu_edit).isVisible = mUri?.scheme == "file" menu.findItem(R.id.menu_properties).isVisible = mUri?.scheme == "file"
return true return true
} }