mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
add Set as wallpaper to photovideoactivity
This commit is contained in:
parent
679deb424a
commit
5c12491fc1
2 changed files with 4 additions and 4 deletions
|
@ -72,6 +72,7 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentClic
|
|||
|
||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||
menuInflater.inflate(R.menu.photo_video_menu, menu)
|
||||
menu.findItem(R.id.menu_set_as_wallpaper).isVisible = mMedium.isImage()
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
@ -7,10 +7,9 @@
|
|||
android:title="@string/share"
|
||||
app:showAsAction="ifRoom"/>
|
||||
<item
|
||||
android:id="@+id/menu_edit"
|
||||
android:icon="@mipmap/edit"
|
||||
android:title="@string/edit"
|
||||
app:showAsAction="ifRoom"/>
|
||||
android:id="@+id/menu_set_as_wallpaper"
|
||||
android:title="@string/set_as_wallpaper"
|
||||
app:showAsAction="never"/>
|
||||
<item
|
||||
android:id="@+id/menu_open_with"
|
||||
android:title="@string/open_with"
|
||||
|
|
Loading…
Reference in a new issue