Fix the possibility to delete nothing in list
This commit is contained in:
parent
b2b3365202
commit
e97429174f
1 changed files with 5 additions and 3 deletions
|
@ -64,10 +64,12 @@ public class ListSelectionHelper {
|
|||
mEditButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (mAdapter.getCount() > 0) {
|
||||
mAdapter.enableEdition(true);
|
||||
mTopBar.setVisibility(View.GONE);
|
||||
mEditTopBar.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
mSelectAllButton = view.findViewById(R.id.select_all);
|
||||
|
|
Loading…
Reference in a new issue