X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fui%2Ftransaction_list%2FTransactionListFragment.java;h=47794138cd1cb9ed526d3d7360aa7cf904ddc306;hp=68e243a891d4662cdfc76d4e9ef5a0e12fdb4dc3;hb=547bbc03e61978caa1efc6eea23306bd690d9429;hpb=80a4e62ba2e7da3f58fd5a614d616ac964d321ca diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java index 68e243a8..47794138 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java @@ -164,8 +164,11 @@ public class TransactionListFragment extends MobileLedgerListFragment Data.foundTransactionItemIndex.observe(getViewLifecycleOwner(), pos -> { Logger.debug("go-to-date", String.format(Locale.US, "Found pos %d", pos)); - if (pos != null) + if (pos != null) { root.scrollToPosition(pos); + // reset the value to avoid re-notification upon reconfiguration or app restart + Data.foundTransactionItemIndex.setValue(null); + } }); } private void onAccountNameFilterChanged(String accName) {