From 4b70b2a7f456447dfe56468e09fe30bf9dbebd56 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 4 Mar 2021 19:25:07 +0200 Subject: [PATCH] remove the focused check before restoring cursor position the check can fail for some reason, breaking user experience --- .../ui/new_transaction/NewTransactionItemHolder.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); -- 2.39.5