From: Damyan Ivanov Date: Thu, 4 Mar 2021 17:25:07 +0000 (+0200) Subject: remove the focused check before restoring cursor position X-Git-Tag: v0.17.0~37 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=4b70b2a7f456447dfe56468e09fe30bf9dbebd56;p=mobile-ledger.git remove the focused check before restoring cursor position the check can fail for some reason, breaking user experience --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionItemHolder.java b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionItemHolder.java index c6232d16..247f40eb 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionItemHolder.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionItemHolder.java @@ -626,9 +626,7 @@ class NewTransactionItemHolder extends RecyclerView.ViewHolder try { b.accountRowAccName.setAdapter(null); b.accountRowAccName.setText(incomingAccountName); - if (b.accountRowAccName.hasFocus()) - b.accountRowAccName.setSelection( - acc.getAccountNameCursorPosition()); + b.accountRowAccName.setSelection(acc.getAccountNameCursorPosition()); } finally { b.accountRowAccName.setAdapter(a);