|
@@ -244,12 +244,11 @@ public class FileMenuFilter {
|
|
|
}
|
|
|
|
|
|
// SET PICTURE AS
|
|
|
- if (mFile == null || !mFile.isImage()){
|
|
|
+ if (!isSingleImage()) {
|
|
|
toHide.add(R.id.action_set_as_wallpaper);
|
|
|
} else {
|
|
|
toShow.add(R.id.action_set_as_wallpaper);
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
private boolean anyFileSynchronizing() {
|
|
@@ -305,6 +304,10 @@ public class FileMenuFilter {
|
|
|
return isSingleSelection() && !mFiles.iterator().next().isFolder();
|
|
|
}
|
|
|
|
|
|
+ private boolean isSingleImage() {
|
|
|
+ return isSingleSelection() && mFiles.iterator().next().isImage();
|
|
|
+ }
|
|
|
+
|
|
|
private boolean allFiles() {
|
|
|
return mFiles != null && !containsFolder();
|
|
|
}
|