From b37b9fed5d64e896db418016d2d6090363ec81d4 Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Sat, 8 Aug 2015 11:26:07 -0400 Subject: Ensure positions of passwords after deleted password are updated (attempt to fix #115) --- .../java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java index 857c8276..fb6bc8fa 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java +++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java @@ -59,8 +59,7 @@ public class PasswordRecyclerAdapter extends RecyclerView.Adapter position) { + selectedItems.remove(selected); + selectedItems.add(selected - 1); + } + } notifyItemChanged(position); } -- cgit v1.2.3