Skip to content
Snippets Groups Projects
Commit 88294a84 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Fix directory settings actions with remote control

parent 54ab2c4f
No related branches found
No related tags found
No related merge requests found
......@@ -160,6 +160,7 @@ public class BaseBrowserAdapter extends RecyclerView.Adapter<BaseBrowserAdapter.
@Override
public boolean onLongClick(View v) {
binding.browserCheckbox.toggle();
onCheckBoxClick(binding.browserCheckbox);
return true;
}
});
......@@ -175,7 +176,7 @@ public class BaseBrowserAdapter extends RecyclerView.Adapter<BaseBrowserAdapter.
fragment.browse(mw, getAdapterPosition(), binding.browserCheckbox.isChecked());
}
public void onCheckBoxClick(View v){
public void onCheckBoxClick(View v) {
if (getItem(getAdapterPosition()).getItemType() == TYPE_STORAGE)
checkBoxAction(v, ((Storage) getItem(getAdapterPosition())).getUri().getPath());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment