[Android] AudioAlbumsSongs: code cleaning and reduce scope

Jean-Baptiste Kempf git at videolan.org
Sat May 23 19:09:13 CEST 2015


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat May 23 18:48:56 2015 +0200| [49191c464caf48ddeaacafb05faaff7633d89a3e] | committer: Jean-Baptiste Kempf

AudioAlbumsSongs: code cleaning and reduce scope

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=49191c464caf48ddeaacafb05faaff7633d89a3e
---

 .../org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java    |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
index 8f075e9..29946a4 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
@@ -73,14 +73,9 @@ public class AudioAlbumsSongsFragment extends Fragment implements SwipeRefreshLa
 
     private SwipeRefreshLayout mSwipeRefreshLayout;
     private ViewPager mViewPager;
-    private SlidingTabLayout mSlidingTabLayout;
     private AudioBrowserListAdapter mSongsAdapter;
     private AudioBrowserListAdapter mAlbumsAdapter;
 
-    public final static String EXTRA_NAME = "name";
-    public final static String EXTRA_NAME2 = "name2";
-    public final static String EXTRA_MODE = "mode";
-
     public final static int MODE_ALBUM = 0;
     public final static int MODE_SONG = 1;
     public final static int MODE_TOTAL = 2; // Number of audio browser modes
@@ -132,7 +127,7 @@ public class AudioAlbumsSongsFragment extends Fragment implements SwipeRefreshLa
         mViewPager.setAdapter(new AudioPagerAdapter(lists, titles));
 
         mViewPager.setOnTouchListener(mSwipeFilter);
-        mSlidingTabLayout = (SlidingTabLayout) v.findViewById(R.id.sliding_tabs);
+        SlidingTabLayout mSlidingTabLayout = (SlidingTabLayout) v.findViewById(R.id.sliding_tabs);
         mSlidingTabLayout.setCustomTabView(R.layout.tab_layout, R.id.tab_title);
         mSlidingTabLayout.setDistributeEvenly(true);
         mSlidingTabLayout.setViewPager(mViewPager);



More information about the Android mailing list