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)
src/com/owncloud/android/files/FileMenuFilter.java

index 917f936..e6638ba 100644 (file)
@@ -244,6 +244,13 @@ public class FileMenuFilter {
             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);
+        }
+
     }
 
 }