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

DROID-789 Widgets | Enhancement | Icon logic for tree widget elements + tests (#2882)

This commit is contained in:
Evgenii Kozlov 2023-01-31 15:05:38 +01:00 committed by GitHub
parent 49730a39bd
commit 9c55d1a894
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 397 additions and 27 deletions

View file

@ -13,7 +13,8 @@ fun StubObject(
description: String? = null,
iconEmoji: String? = null,
isReadOnly: Boolean? = null,
isHidden: Boolean? = null
isHidden: Boolean? = null,
links: List<Id> = emptyList()
): ObjectWrapper.Basic = ObjectWrapper.Basic(
map = mapOf(
Relations.ID to id,
@ -26,7 +27,8 @@ fun StubObject(
Relations.DESCRIPTION to description,
Relations.ICON_EMOJI to iconEmoji,
Relations.IS_READ_ONLY to isReadOnly,
Relations.IS_HIDDEN to isHidden
Relations.IS_HIDDEN to isHidden,
Relations.LINKS to links
)
)