1
0
Fork 0
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:
ubu 2020-02-25 21:52:01 +03:00
parent 24a08e1029
commit 20fee55e0d

View file

@ -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)
}