Merge branch 'master' of github.com:owncloud/android into setAsWallpaper
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / preview / PreviewImageFragment.java
index 3ad1f8b..aea5e5d 100644 (file)
@@ -224,6 +224,9 @@ public class PreviewImageFragment extends FileFragment {
     public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
         super.onCreateOptionsMenu(menu, inflater);
         inflater.inflate(R.menu.file_actions_menu, menu);
+
+        MenuItem item = menu.findItem(R.id.action_set_as_wallpaper);
+        item.setVisible(getFile().isDown());
     }
 
     /**