diff --git a/app/gradle.properties b/app/gradle.properties index d17b5aa85a..6b8b95e7cb 100644 --- a/app/gradle.properties +++ b/app/gradle.properties @@ -1,4 +1,4 @@ version.versionMajor=0 version.versionMinor=42 -version.versionPatch=4 +version.versionPatch=5 version.useDatedVersionName=false \ No newline at end of file diff --git a/presentation/src/main/java/com/anytypeio/anytype/presentation/home/HomeScreenViewModel.kt b/presentation/src/main/java/com/anytypeio/anytype/presentation/home/HomeScreenViewModel.kt index fbb9b89a62..b9fcd9b7d8 100644 --- a/presentation/src/main/java/com/anytypeio/anytype/presentation/home/HomeScreenViewModel.kt +++ b/presentation/src/main/java/com/anytypeio/anytype/presentation/home/HomeScreenViewModel.kt @@ -1428,13 +1428,7 @@ class HomeScreenViewModel( type = parseWidgetType(curr), layout = when (val source = curr.source) { is Widget.Source.Bundled -> UNDEFINED_LAYOUT_CODE - is Widget.Source.Default -> { - if (source.obj.layout == ObjectType.Layout.OBJECT_TYPE) { - UNDEFINED_LAYOUT_CODE - } else { - source.obj.layout?.code ?: UNDEFINED_LAYOUT_CODE - } - } + is Widget.Source.Default -> source.obj.layout?.code ?: UNDEFINED_LAYOUT_CODE Widget.Source.Other -> UNDEFINED_LAYOUT_CODE }, isInEditMode = isInEditMode() diff --git a/presentation/src/main/java/com/anytypeio/anytype/presentation/widgets/SelectWidgetTypeViewModel.kt b/presentation/src/main/java/com/anytypeio/anytype/presentation/widgets/SelectWidgetTypeViewModel.kt index 559eede929..81c886518d 100644 --- a/presentation/src/main/java/com/anytypeio/anytype/presentation/widgets/SelectWidgetTypeViewModel.kt +++ b/presentation/src/main/java/com/anytypeio/anytype/presentation/widgets/SelectWidgetTypeViewModel.kt @@ -96,7 +96,9 @@ class SelectWidgetTypeViewModel( objectLayout == ObjectType.Layout.OBJECT_TYPE -> { listOf( + WidgetTypeView.View(), WidgetTypeView.CompactList(), + WidgetTypeView.List(), WidgetTypeView.Link() ) } @@ -171,6 +173,7 @@ class SelectWidgetTypeViewModel( objectLayout == ObjectType.Layout.OBJECT_TYPE -> { listOf( + WidgetTypeView.View(isSelected = false), WidgetTypeView.CompactList(), WidgetTypeView.List(), WidgetTypeView.Link()