[Android] Remove useless cast
Geoffrey Métais
git at videolan.org
Fri May 27 16:42:34 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri May 27 16:09:09 2016 +0200| [f84df93cc1e90a66ed21e2be345ad9c9907993ac] | committer: Geoffrey Métais
Remove useless cast
> https://code.videolan.org/videolan/vlc-android/commit/f84df93cc1e90a66ed21e2be345ad9c9907993ac
---
vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java b/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
index 1869f31..4093e9e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/CardPresenter.java
@@ -44,7 +44,6 @@ import org.videolan.vlc.gui.helpers.AsyncImageLoader;
import org.videolan.vlc.gui.helpers.AudioUtil;
import org.videolan.vlc.gui.helpers.BitmapUtil;
import org.videolan.vlc.gui.tv.browser.MusicFragment;
-import org.videolan.vlc.media.MediaDatabase;
import org.videolan.vlc.media.MediaWrapper;
import org.videolan.vlc.util.HttpImageLoader;
@@ -106,7 +105,7 @@ public class CardPresenter extends Presenter {
public void onBindViewHolder(Presenter.ViewHolder viewHolder, final Object item) {
ViewHolder holder = ((ViewHolder) viewHolder);
if (item instanceof MediaWrapper) {
- MediaWrapper mediaWrapper = (MediaWrapper) item;
+ final MediaWrapper mediaWrapper = (MediaWrapper) item;
holder.mCardView.setTitleText(mediaWrapper.getTitle());
holder.mCardView.setContentText(mediaWrapper.getDescription());
if (mediaWrapper.getType() == mediaWrapper.TYPE_GROUP)
@@ -117,7 +116,7 @@ public class CardPresenter extends Presenter {
holder.view.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
- TvUtil.showMediaDetail(v.getContext(), (MediaWrapper) item);
+ TvUtil.showMediaDetail(v.getContext(), mediaWrapper);
return true;
}
});
More information about the Android
mailing list