Merge branch 'setAsWallpaper' into beta
authortobiasKaminsky <tobias@kaminsky.me>
Fri, 6 Nov 2015 16:35:52 +0000 (17:35 +0100)
committertobiasKaminsky <tobias@kaminsky.me>
Fri, 6 Nov 2015 16:35:52 +0000 (17:35 +0100)
1  2 
src/com/owncloud/android/files/FileMenuFilter.java

@@@ -237,13 -227,13 +237,20 @@@ public class FileMenuFilter 
              toShow.add(R.id.action_unfavorite_file);
          }
  
 +        // STREAM
 +        if (mFile != null && !mFile.isDown() && (mFile.isAudio() || mFile.isVideo())){
 +            toShow.add(R.id.action_stream_file);
 +        } else {
 +            toHide.add(R.id.action_stream_file);
 +        }
 +
+         // SET PICTURE AS
+         if (mFile == null || !mFile.isImage()){
+             toHide.add(R.id.action_set_as_wallpaper);
+         } else {
+             toShow.add(R.id.action_set_as_wallpaper);
+         }
      }
  
  }