diff --git a/core-models/src/main/java/com/anytypeio/anytype/core_models/SupportedLayouts.kt b/core-models/src/main/java/com/anytypeio/anytype/core_models/SupportedLayouts.kt index a7e3719d7b..663dc724f6 100644 --- a/core-models/src/main/java/com/anytypeio/anytype/core_models/SupportedLayouts.kt +++ b/core-models/src/main/java/com/anytypeio/anytype/core_models/SupportedLayouts.kt @@ -34,7 +34,6 @@ object SupportedLayouts { ) val systemLayouts = listOf( - ObjectType.Layout.OBJECT_TYPE, ObjectType.Layout.RELATION, ObjectType.Layout.RELATION_OPTION, ObjectType.Layout.DASHBOARD, diff --git a/presentation/src/main/java/com/anytypeio/anytype/presentation/search/ObjectSearchConstants.kt b/presentation/src/main/java/com/anytypeio/anytype/presentation/search/ObjectSearchConstants.kt index cfb770512a..09e684a12d 100644 --- a/presentation/src/main/java/com/anytypeio/anytype/presentation/search/ObjectSearchConstants.kt +++ b/presentation/src/main/java/com/anytypeio/anytype/presentation/search/ObjectSearchConstants.kt @@ -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,