[Android] PlaylistFavorites: fix count to all tracks

Duncan McNamara git at videolan.org
Tue Mar 14 11:59:20 UTC 2023


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Mon Mar  6 16:16:37 2023 +0100| [33155e930c4f1c7a7ce2b7a0a902317c89fd135c] | committer: Nicolas Pomepuy

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

> https://code.videolan.org/videolan/vlc-android/commit/33155e930c4f1c7a7ce2b7a0a902317c89fd135c
---

 medialibrary/jni/utils.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/medialibrary/jni/utils.cpp b/medialibrary/jni/utils.cpp
index 83eb73dbba..eaaef924a2 100644
--- a/medialibrary/jni/utils.cpp
+++ b/medialibrary/jni/utils.cpp
@@ -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())



More information about the Android mailing list