Finish action bar mode when all items are deselected

This commit is contained in:
Matthew Wong 2015-07-01 02:33:23 -04:00
parent 1fa1f4a553
commit 6d0abdcad2

View File

@ -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);
}