From 0804f05abcbb5a6b4300eac6f881cd9d59bb42bd Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 14 Mar 2020 18:45:00 +0200 Subject: [PATCH] NT: survive swiping away an account when only two accounts are present the old code ignored the swipe, but did not null it, so the UI was still left with only one account the new code accounts for the swipe as usual and lets viewModel.checkTransactionSubmittable add the now missing account row --- .../ui/activity/NewTransactionItemsAdapter.java | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java index 710b4d68..c9b9230e 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java @@ -108,18 +108,11 @@ class NewTransactionItemsAdapter extends RecyclerView.Adapter