mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 13:57:10 +09:00
Hotfix - try/catch when setting cursor selection
This commit is contained in:
parent
24a08e1029
commit
20fee55e0d
1 changed files with 5 additions and 1 deletions
|
@ -160,7 +160,11 @@ sealed class BlockViewHolder(view: View) : RecyclerView.ViewHolder(view) {
|
|||
else
|
||||
content.setText(item.text)
|
||||
}
|
||||
content.setSelection(cursor)
|
||||
try {
|
||||
content.setSelection(cursor)
|
||||
} catch (e: Throwable) {
|
||||
Timber.e(e, "Error while setting focus: ")
|
||||
}
|
||||
} else if (payload.markupChanged()) {
|
||||
if (item is Markup) setMarkup(item)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue