mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3485 Primitives | Note layout (#2218)
This commit is contained in:
parent
eb0f7e16a9
commit
8af3957b24
2 changed files with 18 additions and 10 deletions
|
@ -92,7 +92,7 @@ fun TypeLayoutsScreen(
|
|||
contentPadding = PaddingValues(start = 20.dp, end = 20.dp),
|
||||
horizontalArrangement = Arrangement.spacedBy(
|
||||
space = 12.dp,
|
||||
alignment = Alignment.End
|
||||
alignment = Alignment.Start
|
||||
),
|
||||
) {
|
||||
items(
|
||||
|
|
|
@ -432,15 +432,23 @@ class ObjectTypeViewModel(
|
|||
}
|
||||
|
||||
TypeEvent.OnLayoutButtonClick -> {
|
||||
uiTypeLayoutsState.value = Visible(
|
||||
layouts = listOf(
|
||||
ObjectType.Layout.BASIC,
|
||||
ObjectType.Layout.NOTE,
|
||||
ObjectType.Layout.PROFILE,
|
||||
ObjectType.Layout.TODO
|
||||
),
|
||||
selectedLayout = _objTypeState.value?.recommendedLayout
|
||||
)
|
||||
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,
|
||||
//DROID-3485, NOTE layout is not supported for now
|
||||
//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