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:
parent
b1bd1edf1a
commit
a4dbe03756
1 changed files with 9 additions and 16 deletions
|
@ -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 -> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue