Skip to content

Commit

Permalink
- Hopefully fix strage crash in playlist.
Browse files Browse the repository at this point in the history
- Bump version.
  • Loading branch information
amuttsch committed Dec 16, 2013
1 parent 21708cb commit 00963ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.qspool.clementineremote"
android:versionCode="26"
android:versionCode="27"
android:versionName="8.3" >

<uses-sdk android:minSdkVersion="8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ private void parsePlaylists(ResponsePlaylists responsePlaylists) {
App.mClementine.PlaylistsAvailable.release();
}
} catch (InterruptedException e) {
}
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
mEmptyPlaylist = view.findViewById(R.id.playlist_empty);

// Create the adapter
mAdapter = new PlaylistSongAdapter(getActivity(), R.layout.playlist_row, mData);
mAdapter = new PlaylistSongAdapter(getActivity(), R.layout.playlist_row, new LinkedList<MySong>(mData));

mList.setOnItemClickListener(oiclSong);
//mList.setOnItemLongClickListener(oilclSong);
Expand Down Expand Up @@ -270,7 +270,7 @@ public void updateSongList() {
mData.addAll(App.mClementine.getPlaylists().get(mId).getPlaylistSongs());

// Check if we should update the current view position
mAdapter = new PlaylistSongAdapter(getActivity(), R.layout.playlist_row, mData);
mAdapter = new PlaylistSongAdapter(getActivity(), R.layout.playlist_row, new LinkedList<MySong>(mData));
mList.setAdapter(mAdapter);

updateViewPosition();
Expand All @@ -279,7 +279,7 @@ public void updateSongList() {
mList.setEmptyView(mEmptyPlaylist);
}

App.mClementine.PlaylistsAvailable.release();;
App.mClementine.PlaylistsAvailable.release();
} catch (InterruptedException e) {
}

Expand Down

0 comments on commit 00963ce

Please sign in to comment.