[Android] Fix NPE for AudioAlbumFragment
Geoffrey Métais
git at videolan.org
Wed Feb 3 19:01:19 CET 2016
vlc-android | branch: dialog | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Feb 3 09:38:23 2016 +0100| [75c1faab5a13e72d51f276d40c966920c499d013] | committer: Geoffrey Métais
Fix NPE for AudioAlbumFragment
> https://code.videolan.org/videolan/vlc-android/commit/75c1faab5a13e72d51f276d40c966920c499d013
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumFragment.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumFragment.java
index 2db50a5..8240593 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumFragment.java
@@ -74,11 +74,11 @@ public class AudioAlbumFragment extends PlaybackServiceFragment implements Adapt
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- mAdapter.setContextPopupMenuListener(mContextPopupMenuListener);
-
if (savedInstanceState != null)
setMediaList(savedInstanceState.<MediaWrapper>getParcelableArrayList("list"), savedInstanceState.getString("title"));
mAdapter = new AlbumAdapter(getActivity(), mMediaList);
+
+ mAdapter.setContextPopupMenuListener(mContextPopupMenuListener);
}
@Override
More information about the Android
mailing list