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

Remove dead code

parent c28533bf
No related branches found
No related tags found
No related merge requests found
......@@ -92,23 +92,6 @@ public class HistoryAdapter extends RecyclerView.Adapter<HistoryAdapter.ViewHold
return mMediaList.isEmpty();
}
public ClickHandler mClickHandler = new ClickHandler();
public class ClickHandler {
public void onClick(View v){
openMediaFromView(v);
}
}
private void openMediaFromView(View v) {
int position = ((ViewHolder)v.getTag()).getAdapterPosition();
MediaWrapper mw = mMediaList.get(position);
mMediaList.remove(position);
mMediaList.add(0, mw);
notifyItemMoved(position, 0);
MediaUtils.openMedia(v.getContext(), mw);
}
public void remove(final int position) {
VLCApplication.runBackground(new Runnable() {
@Override
......
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