summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorMatthew Wong <wongma@protonmail.ch>2015-07-01 02:33:23 -0400
committerMatthew Wong <wongma@protonmail.ch>2015-07-01 02:33:23 -0400
commit6d0abdcad2288ff751c6b5ad195a314c812491c0 (patch)
treeddd5282ee8f928ee4b09baed848db47a4ab60924 /app/src/main
parent1fa1f4a553cdef7c22570f5449d5793b82442700 (diff)
Finish action bar mode when all items are deselected
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java3
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);
}