mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3588 Widgets | Fix | Filter out only objects with system layout for widgets (#2337)
This commit is contained in:
parent
5581e08abf
commit
68038921f5
2 changed files with 6 additions and 7 deletions
|
@ -34,7 +34,6 @@ object SupportedLayouts {
|
|||
)
|
||||
|
||||
val systemLayouts = listOf(
|
||||
ObjectType.Layout.OBJECT_TYPE,
|
||||
ObjectType.Layout.RELATION,
|
||||
ObjectType.Layout.RELATION_OPTION,
|
||||
ObjectType.Layout.DASHBOARD,
|
||||
|
|
|
@ -398,8 +398,8 @@ object ObjectSearchConstants {
|
|||
),
|
||||
DVFilter(
|
||||
relation = Relations.LAYOUT,
|
||||
condition = DVFilterCondition.IN,
|
||||
value = SupportedLayouts.createObjectLayouts.map { it.code.toDouble() }
|
||||
condition = DVFilterCondition.NOT_IN,
|
||||
value = SupportedLayouts.systemLayouts.map { it.code.toDouble() }
|
||||
),
|
||||
DVFilter(
|
||||
relation = Relations.TYPE_UNIQUE_KEY,
|
||||
|
@ -459,8 +459,8 @@ object ObjectSearchConstants {
|
|||
add(
|
||||
DVFilter(
|
||||
relation = Relations.LAYOUT,
|
||||
condition = DVFilterCondition.IN,
|
||||
value = SupportedLayouts.createObjectLayouts.map { it.code.toDouble() }
|
||||
condition = DVFilterCondition.NOT_IN,
|
||||
value = SupportedLayouts.systemLayouts.map { it.code.toDouble() }
|
||||
)
|
||||
)
|
||||
if (spaceCreationDateInSeconds != null) {
|
||||
|
@ -519,8 +519,8 @@ object ObjectSearchConstants {
|
|||
),
|
||||
DVFilter(
|
||||
relation = Relations.LAYOUT,
|
||||
condition = DVFilterCondition.IN,
|
||||
value = SupportedLayouts.createObjectLayouts.map { it.code.toDouble() }
|
||||
condition = DVFilterCondition.NOT_IN,
|
||||
value = SupportedLayouts.systemLayouts.map { it.code.toDouble() }
|
||||
),
|
||||
DVFilter(
|
||||
relation = Relations.LAST_OPENED_DATE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue