mirror of
https://github.com/nextcloud/android.git
synced 2024-12-19 07:22:06 +03:00
API fixes after rebase
This commit is contained in:
parent
2a5d8a8aa6
commit
a78aa605b6
2 changed files with 3 additions and 2 deletions
|
@ -32,6 +32,7 @@ import com.owncloud.android.files.services.FileUploader.FileUploaderBinder;
|
|||
import com.owncloud.android.lib.resources.status.OCCapability;
|
||||
import com.owncloud.android.services.OperationsService.OperationsServiceBinder;
|
||||
import com.owncloud.android.ui.activity.ComponentsGetter;
|
||||
import com.owncloud.android.utils.MimeTypeUtil;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
@ -305,7 +306,7 @@ public class FileMenuFilter {
|
|||
}
|
||||
|
||||
private boolean isSingleImage() {
|
||||
return isSingleSelection() && mFiles.iterator().next().isImage();
|
||||
return isSingleSelection() && MimeTypeUtil.isImage(mFiles.iterator().next());
|
||||
}
|
||||
|
||||
private boolean allFiles() {
|
||||
|
|
|
@ -227,7 +227,7 @@ public class PreviewImageFragment extends FileFragment {
|
|||
super.onCreateOptionsMenu(menu, inflater);
|
||||
inflater.inflate(R.menu.file_actions_menu, menu);
|
||||
|
||||
if(getFile().isDown() && getFile().isImage()) {
|
||||
if(getFile().isDown() && MimeTypeUtil.isImage(getFile())) {
|
||||
menu.findItem(R.id.action_set_as_wallpaper).setVisible(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue