/**
* Creates the {@link Cursor} used to run the query.
- *
+ *
* @param context The {@link Context} to use.
* @param playlistID The playlist the songs belong to.
* @return The {@link Cursor} used to run the song query.
*/
public static final Cursor makePlaylistSongCursor(final Context context, final Long playlistID) {
- final StringBuilder mSelection = new StringBuilder();
- mSelection.append(AudioColumns.IS_MUSIC + "=1");
- mSelection.append(" AND " + AudioColumns.TITLE + " != ''"); //$NON-NLS-2$
+ String mSelection = (AudioColumns.IS_MUSIC + "=1") +
+ " AND " + AudioColumns.TITLE + " != ''";
return context.getContentResolver().query(
MediaStore.Audio.Playlists.Members.getContentUri("external", playlistID),
new String[] {
AudioColumns.YEAR,
/* 8 */
Playlists.Members.PLAY_ORDER,
- }, mSelection.toString(), null,
+ }, mSelection, null,
MediaStore.Audio.Playlists.Members.DEFAULT_SORT_ORDER);
}
}