[Android] Remove dead code
Geoffrey Métais
git at videolan.org
Fri Dec 18 11:01:46 CET 2015
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec 18 11:00:06 2015 +0100| [e850732aae7e8007e07802721fdfd9bc137a0c5d] | committer: Geoffrey Métais
Remove dead code
> https://code.videolan.org/videolan/vlc-android/commit/e850732aae7e8007e07802721fdfd9bc137a0c5d
---
.../src/org/videolan/vlc/gui/HistoryAdapter.java | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/HistoryAdapter.java b/vlc-android/src/org/videolan/vlc/gui/HistoryAdapter.java
index 5bd7894..28a13ad 100644
--- a/vlc-android/src/org/videolan/vlc/gui/HistoryAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/HistoryAdapter.java
@@ -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
More information about the Android
mailing list