menu item only visible for video/audio

This commit is contained in:
tobiasKaminsky 2015-11-06 15:21:53 +01:00 committed by AndyScherzinger
parent 4e284cf2ca
commit 74c0fb6d1b
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -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() {