[Android] Update emptyView when resuming audio browser
Geoffrey Métais
git at videolan.org
Tue Aug 11 15:47:25 CEST 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Aug 11 15:47:01 2015 +0200| [d17de76e755cc040d2fc52d6ba61d3256916ac4b] | committer: Geoffrey Métais
Update emptyView when resuming audio browser
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=d17de76e755cc040d2fc52d6ba61d3256916ac4b
---
.../src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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 6b83b57..ea133c6 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -259,8 +259,10 @@ public class AudioBrowserFragment extends MediaBrowserFragment implements SwipeR
else if (mGenresAdapter.isEmpty() || mArtistsAdapter.isEmpty() ||
mAlbumsAdapter.isEmpty() || mSongsAdapter.isEmpty())
updateLists();
- else
+ else {
+ updateEmptyView(mViewPager.getCurrentItem());
focusHelper(false, mLists.get(mViewPager.getCurrentItem()).getId());
+ }
mMediaLibrary.addUpdateHandler(mHandler);
mMediaLibrary.setBrowser(this);
final ListView current = (ListView)mLists.get(mViewPager.getCurrentItem());
More information about the Android
mailing list