1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 13:57:10 +09:00

DROID-3588 Widgets | Fix | Filter out only objects with system layout for widgets (#2337)

This commit is contained in:
Evgenii Kozlov 2025-04-17 19:22:27 +02:00 committed by GitHub
parent 9551d992fe
commit ae9738445d
Signed by: github
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 7 deletions

View file

@ -34,7 +34,6 @@ object SupportedLayouts {
)
val systemLayouts = listOf(
ObjectType.Layout.OBJECT_TYPE,
ObjectType.Layout.RELATION,
ObjectType.Layout.RELATION_OPTION,
ObjectType.Layout.DASHBOARD,

View file

@ -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,