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

DROID-3485 Primitives | Note layout fix (#2310)

This commit is contained in:
Konstantin Ivanov 2025-04-14 15:45:45 +02:00 committed by GitHub
parent b1bd1edf1a
commit a4dbe03756
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -470,22 +470,15 @@ class ObjectTypeViewModel(
}
TypeEvent.OnLayoutButtonClick -> {
if (_objTypeState.value?.recommendedLayout == ObjectType.Layout.NOTE) {
uiTypeLayoutsState.value = Visible(
layouts = listOf(ObjectType.Layout.NOTE),
selectedLayout = _objTypeState.value?.recommendedLayout
)
} else {
uiTypeLayoutsState.value = Visible(
layouts = listOf(
ObjectType.Layout.BASIC,
ObjectType.Layout.NOTE,
ObjectType.Layout.PROFILE,
ObjectType.Layout.TODO
),
selectedLayout = _objTypeState.value?.recommendedLayout
)
}
uiTypeLayoutsState.value = Visible(
layouts = listOf(
ObjectType.Layout.BASIC,
ObjectType.Layout.NOTE,
ObjectType.Layout.PROFILE,
ObjectType.Layout.TODO
),
selectedLayout = _objTypeState.value?.recommendedLayout
)
}
is TypeEvent.OnSyncStatusClick -> {