mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3611 Navigation | Fix | Allow restoration of last opened space from loading state on splash screen - Hotfix (#2361)
This commit is contained in:
parent
2649a50cfa
commit
11c151828a
4 changed files with 233 additions and 38 deletions
|
@ -1,6 +1,7 @@
|
|||
package com.anytypeio.anytype.core_models
|
||||
|
||||
import com.anytypeio.anytype.core_models.multiplayer.SpaceAccessType
|
||||
import com.anytypeio.anytype.core_models.restrictions.SpaceStatus
|
||||
import com.anytypeio.anytype.test_utils.MockDataFactory
|
||||
|
||||
fun StubDataView(
|
||||
|
@ -100,13 +101,19 @@ fun StubSpaceView(
|
|||
id: Id = MockDataFactory.randomUuid(),
|
||||
targetSpaceId: Id = MockDataFactory.randomUuid(),
|
||||
spaceAccessType: SpaceAccessType = SpaceAccessType.DEFAULT,
|
||||
sharedSpaceLimit: Int? = null
|
||||
sharedSpaceLimit: Int? = null,
|
||||
spaceAccountStatus: SpaceStatus? = null,
|
||||
spaceLocalStatus: SpaceStatus? = null,
|
||||
chatId: Id? = null
|
||||
|
||||
) = ObjectWrapper.SpaceView(
|
||||
map = mapOf(
|
||||
Relations.ID to id,
|
||||
Relations.CHAT_ID to chatId,
|
||||
Relations.TARGET_SPACE_ID to targetSpaceId,
|
||||
Relations.SPACE_ACCESS_TYPE to spaceAccessType.code.toDouble(),
|
||||
Relations.SHARED_SPACES_LIMIT to sharedSpaceLimit?.toDouble()
|
||||
Relations.SHARED_SPACES_LIMIT to sharedSpaceLimit?.toDouble(),
|
||||
Relations.SPACE_ACCOUNT_STATUS to spaceAccountStatus?.code?.toDouble(),
|
||||
Relations.SPACE_LOCAL_STATUS to spaceLocalStatus?.code?.toDouble()
|
||||
)
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue