[Android] AudioBrowser: rename a variable
Jean-Baptiste Kempf
git at videolan.org
Mon Jun 15 11:45:22 CEST 2015
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Jun 13 01:18:41 2015 +0200| [811cf91994add1437c421b1d1bed50f065c0f08e] | committer: Geoffrey Métais
AudioBrowser: rename a variable
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=811cf91994add1437c421b1d1bed50f065c0f08e
---
.../videolan/vlc/gui/audio/AudioBrowserFragment.java | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
index 3b2e7fa..a911b3a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -95,7 +95,7 @@ public class AudioBrowserFragment extends MediaBrowserFragment implements SwipeR
private ConcurrentLinkedQueue<AudioBrowserListAdapter> mAdaptersToNotify = new ConcurrentLinkedQueue<AudioBrowserListAdapter>();
private ViewPager mViewPager;
- private TabLayout mSlidingTabLayout;
+ private TabLayout mTabLayout;
private TextView mEmptyView;
private List<View> mLists;
private FloatingActionButton mFabPlayShuffleAll;
@@ -165,12 +165,12 @@ public class AudioBrowserFragment extends MediaBrowserFragment implements SwipeR
mViewPager.setOnTouchListener(mSwipeFilter);
- mSlidingTabLayout = (TabLayout) v.findViewById(R.id.sliding_tabs);
- mSlidingTabLayout.setupWithViewPager(mViewPager);
- mSlidingTabLayout.setTabMode(TabLayout.MODE_FIXED);
-
- mViewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(mSlidingTabLayout));
- mSlidingTabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
+ mTabLayout = (TabLayout) v.findViewById(R.id.sliding_tabs);
+ mTabLayout.setupWithViewPager(mViewPager);
+ mTabLayout.setTabMode(TabLayout.MODE_FIXED);
+
+ mViewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(mTabLayout));
+ mTabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
@Override
public void onTabSelected(TabLayout.Tab tab) {
updateEmptyView(tab.getPosition());
@@ -720,10 +720,10 @@ public class AudioBrowserFragment extends MediaBrowserFragment implements SwipeR
if (mAudioList.isEmpty()){
updateEmptyView(mViewPager.getCurrentItem());
mSwipeRefreshLayout.setRefreshing(false);
- mSlidingTabLayout.setVisibility(View.GONE);
+ mTabLayout.setVisibility(View.GONE);
focusHelper(true, R.id.artists_list);
} else {
- mSlidingTabLayout.setVisibility(View.VISIBLE);
+ mTabLayout.setVisibility(View.VISIBLE);
mHandler.sendEmptyMessageDelayed(MSG_LOADING, 300);
ExecutorService tpe = Executors.newSingleThreadExecutor();
More information about the Android
mailing list