mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 10:49:04 +03:00
Merge pull request #5471 from nextcloud/richWorkspace18only
Show "add folder info" only if text app is available
This commit is contained in:
commit
be238a3f96
1 changed files with 6 additions and 1 deletions
|
@ -39,6 +39,7 @@ import com.nextcloud.client.device.DeviceInfo;
|
|||
import com.owncloud.android.R;
|
||||
import com.owncloud.android.datamodel.ArbitraryDataProvider;
|
||||
import com.owncloud.android.datamodel.OCFile;
|
||||
import com.owncloud.android.files.FileMenuFilter;
|
||||
import com.owncloud.android.lib.common.Creator;
|
||||
import com.owncloud.android.lib.common.DirectEditing;
|
||||
import com.owncloud.android.lib.resources.status.OCCapability;
|
||||
|
@ -170,7 +171,11 @@ public class OCFileListBottomSheetDialog extends BottomSheetDialog {
|
|||
}
|
||||
|
||||
// create rich workspace
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && file != null) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP &&
|
||||
FileMenuFilter.isEditorAvailable(getContext().getContentResolver(),
|
||||
user,
|
||||
MimeTypeUtil.MIMETYPE_TEXT_MARKDOWN) &&
|
||||
file != null) {
|
||||
if (TextUtils.isEmpty(file.getRichWorkspace())) {
|
||||
createRichWorkspace.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue