[Android] Do not destroy audio lists
Geoffrey Métais
git at videolan.org
Wed Jan 11 14:21:10 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jan 11 10:22:44 2017 +0100| [314b61c2014529ea61d8954ce35927ed472991d6] | committer: Geoffrey Métais
Do not destroy audio lists
> https://code.videolan.org/videolan/vlc-android/commit/314b61c2014529ea61d8954ce35927ed472991d6
---
.../src/org/videolan/vlc/gui/audio/AudioPagerAdapter.java | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPagerAdapter.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPagerAdapter.java
index 13a10cd..8eca8cd 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioPagerAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioPagerAdapter.java
@@ -27,10 +27,6 @@ import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
-import org.videolan.vlc.util.Util;
-
-import java.util.Arrays;
-
public class AudioPagerAdapter extends PagerAdapter {
private View[] mLists;
@@ -57,11 +53,6 @@ public class AudioPagerAdapter extends PagerAdapter {
}
@Override
- public void destroyItem(ViewGroup container, int position, Object object) {
- Util.removePositionInArray(Arrays.copyOf(mLists, mLists.length), position, mLists);
- }
-
- @Override
public CharSequence getPageTitle(int position) {
if (position < 0 || position >= mTitles.length)
return "";
More information about the Android
mailing list