[Android] Some more cleanup.
Nicolas Pomepuy
git at videolan.org
Tue Feb 26 09:56:12 CET 2019
vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Tue Feb 26 06:59:30 2019 +0100| [fc8f2b4c71ed957bb2b20706e94efc030e0951c4] | committer: Geoffrey Métais
Some more cleanup.
> https://code.videolan.org/videolan/vlc-android/commit/fc8f2b4c71ed957bb2b20706e94efc030e0951c4
---
vlc-android/res/layout/audio_browser_item.xml | 3 ---
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java | 3 ---
2 files changed, 6 deletions(-)
diff --git a/vlc-android/res/layout/audio_browser_item.xml b/vlc-android/res/layout/audio_browser_item.xml
index 6c7b85a21..cf482b497 100644
--- a/vlc-android/res/layout/audio_browser_item.xml
+++ b/vlc-android/res/layout/audio_browser_item.xml
@@ -14,9 +14,6 @@
name="alignMode"
type="int" />
- <variable
- name="type"
- type="int" />
<variable
name="item"
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
index 9d11e2b1c..13ce5c4c1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
@@ -92,7 +92,6 @@ public class AudioBrowserAdapter extends PagedListAdapter<MediaLibraryItem, Audi
if (position >= getItemCount()) return;
final MediaLibraryItem item = getItem(position);
holder.binding.setItem(item);
- holder.binding.setType(mType);
final boolean isSelected = multiSelectHelper.isSelected(position);
holder.setCoverlay(isSelected);
holder.selectView(isSelected);
@@ -108,13 +107,11 @@ public class AudioBrowserAdapter extends PagedListAdapter<MediaLibraryItem, Audi
final boolean isSelected = ((MediaLibraryItem) payload).hasStateFlags(FLAG_SELECTED);
holder.setCoverlay(isSelected);
holder.selectView(isSelected);
- holder.binding.setType(mType);
} else if (payload instanceof Integer) {
if ((Integer) payload == Constants.UPDATE_SELECTION) {
final boolean isSelected = multiSelectHelper.isSelected(position);
holder.setCoverlay(isSelected);
holder.selectView(isSelected);
- holder.binding.setType(mType);
}
}
}
More information about the Android
mailing list