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

Dashboard | Fix | Note objects title (#1908)

This commit is contained in:
Konstantin Ivanov 2021-11-09 13:46:00 +03:00 committed by GitHub
parent e422b9a99e
commit 21a5a874eb
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 4 deletions

View file

@ -210,7 +210,7 @@ class DashboardAdapter(
}
is ViewHolder.DocumentNoteViewHolder -> {
val item = data[position] as DashboardView.Document
holder.bindTitle(item.snippet)
holder.bindTitle(item.title)
holder.bindSubtitle(item.typeName)
holder.bindLoading(item.isLoading)
}

View file

@ -31,7 +31,6 @@ sealed class DashboardView {
val typeName: String? = null,
val type: String? = null,
val done: Boolean? = null,
val snippet: String? = null,
override val isArchived: Boolean,
override val isSelected: Boolean = false,
override val isLoading: Boolean = false,

View file

@ -466,7 +466,6 @@ class HomeDashboardViewModel(
isLoading = false,
emoji = obj.iconEmoji,
image = obj.iconImage,
snippet = obj.snippet,
type = obj.type.firstOrNull(),
typeName = oType?.name,
layout = obj.layout,
@ -519,7 +518,6 @@ class HomeDashboardViewModel(
isLoading = false,
emoji = obj.iconEmoji,
image = obj.iconImage,
snippet = obj.snippet,
type = obj.type.firstOrNull(),
typeName = oType?.name,
layout = obj.layout,