mirror of
https://github.com/nextcloud/android.git
synced 2024-12-23 01:00:26 +03:00
menu item only visible for video/audio
This commit is contained in:
parent
4e284cf2ca
commit
74c0fb6d1b
1 changed files with 7 additions and 0 deletions
|
@ -243,6 +243,13 @@ public class FileMenuFilter {
|
|||
toShow.add(R.id.action_unfavorite_file);
|
||||
}
|
||||
|
||||
// SET PICTURE AS
|
||||
if (mFile == null || (!mFile.isAudio() && !mFile.isVideo())){
|
||||
toHide.add(R.id.action_set_as_wallpaper);
|
||||
} else {
|
||||
toShow.add(R.id.action_set_as_wallpaper);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private boolean anyFileSynchronizing() {
|
||||
|
|
Loading…
Reference in a new issue