mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
commit
a8f41615d6
1 changed files with 5 additions and 2 deletions
|
@ -792,8 +792,11 @@ public class OCFileListFragment extends ExtendedListFragment implements
|
|||
}
|
||||
|
||||
// create rich workspace
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
menu.findItem(R.id.action_create_rich_workspace).setVisible(TextUtils.isEmpty(mFile.getRichWorkspace()));
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP
|
||||
&& menu.findItem(R.id.action_create_rich_workspace) != null
|
||||
&& mFile != null) {
|
||||
menu.findItem(R.id.action_create_rich_workspace).setVisible(
|
||||
TextUtils.isEmpty(mFile.getRichWorkspace()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue