mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-29 21:38:03 +00: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) {
|
public void onClick(View v) {
|
||||||
if (mActionMode != null) {
|
if (mActionMode != null) {
|
||||||
toggleSelection(holder.position);
|
toggleSelection(holder.position);
|
||||||
|
if (selectedItems.size() == 0) {
|
||||||
|
mActionMode.finish();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
listener.onFragmentInteraction(pass);
|
listener.onFragmentInteraction(pass);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user