diff options
author | Matthew Wong <wongma@protonmail.ch> | 2015-07-01 02:33:23 -0400 |
---|---|---|
committer | Matthew Wong <wongma@protonmail.ch> | 2015-07-01 02:33:23 -0400 |
commit | 6d0abdcad2288ff751c6b5ad195a314c812491c0 (patch) | |
tree | ddd5282ee8f928ee4b09baed848db47a4ab60924 | |
parent | 1fa1f4a553cdef7c22570f5449d5793b82442700 (diff) |
Finish action bar mode when all items are deselected
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java | 3 |
1 files changed, 3 insertions, 0 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 e72b9e07..5ad1b890 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java +++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java @@ -98,6 +98,9 @@ public class PasswordRecyclerAdapter extends RecyclerView.Adapter<PasswordRecycl public void onClick(View v) { if (mActionMode != null) { toggleSelection(holder.position); + if (selectedItems.size() == 0) { + mActionMode.finish(); + } } else { listener.onFragmentInteraction(pass); } |