Skip to content
Snippets Groups Projects
Commit 33155e93 authored by Duncan McNamara's avatar Duncan McNamara Committed by Nicolas Pomepuy
Browse files

PlaylistFavorites: fix count to all tracks

When playlists are filtered by favorite, they should still display the
count of all tracks, not juste the favorite tracks
parent 6ea6e25f
No related branches found
No related tags found
2 merge requests!1702Bump the aar artifacts,!1691Draft: Implement the only favorites queries
......@@ -126,7 +126,7 @@ convertPlaylistObject(JNIEnv* env, fields *fields, medialibrary::PlaylistPtr con
false,
static_cast<bool>( includeMissing ),
false,
static_cast<bool>( onlyFavorites )
false
};
return utils::jni::object{ env, env->NewObject(fields->Playlist.clazz, fields->Playlist.initID,
(jlong) playlistPtr->id(), name.get(), (jint)playlistPtr->media(&params)->count(), (jlong)playlistPtr->duration(), (jint)playlistPtr->nbVideo(), (jint)playlistPtr->nbAudio(), (jint)playlistPtr->nbUnknown(), (jint)playlistPtr->nbDurationUnknown(), (jboolean)playlistPtr->isFavorite())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment