diff options
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SubsonicFragment.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java index 9c76ba3c..3bbc9fac 100644 --- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java +++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java @@ -932,10 +932,10 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR // Create new if not getting a convert view to use
PlaylistSongView view;
- if(convertView == null) {
- view = (PlaylistSongView) new PlaylistSongView(context);
- } else {
+ if(convertView instanceof PlaylistSongView) {
view = (PlaylistSongView) convertView;
+ } else {
+ view = new PlaylistSongView(context);
}
view.setObject(playlist, songs);
|