mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2026-05-07 04:41:31 +02:00
Finish action bar mode when all items are deselected
This commit is contained in:
parent
1fa1f4a553
commit
6d0abdcad2
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue