From 3472e4976738aa23fbbfa9ce7cf411935785d870 Mon Sep 17 00:00:00 2001 From: Siddhesh Naik Date: Sun, 24 Sep 2023 13:36:30 +0530 Subject: [PATCH] Address review comments - opusforlife2 - Updated string value for the dialog option. Video demo: - https://github.com/TeamNewPipe/NewPipe/assets/87667048/09962034-146a-4fa6-acbc-5bc58cba2d10 PR Commit Message Add playlist name and video name in playlist sharing content - Currently, only a list of videos separated by newline are added in the share content. - This makes it difficult to identify a specific video in a list of Urls. - Used string resources for the sharing content formats. - Added a confirmation dialog for users to choose between sharing playlist formats. - Added Playlist name as the header and corresponding video name for each video url in following format. Playlist - Music1: https://media-url1 - Music2: https://media-url2 - Music3: https://media-url3 Screenshots: | Before | After | Confirmation Dialog | | --- | --- | --- | | | | | Video demo: - https://github.com/TeamNewPipe/NewPipe/assets/87667048/09962034-146a-4fa6-acbc-5bc58cba2d10 --- .../schabi/newpipe/local/playlist/LocalPlaylistFragment.java | 4 ++-- app/src/main/res/values/strings.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/local/playlist/LocalPlaylistFragment.java b/app/src/main/java/org/schabi/newpipe/local/playlist/LocalPlaylistFragment.java index 560ea46545a..79159292bd4 100644 --- a/app/src/main/java/org/schabi/newpipe/local/playlist/LocalPlaylistFragment.java +++ b/app/src/main/java/org/schabi/newpipe/local/playlist/LocalPlaylistFragment.java @@ -869,9 +869,9 @@ private void createShareConfirmationDialog() { new AlertDialog.Builder(getContext()) .setTitle(R.string.share_playlist) - .setMessage(R.string.share_playlist_with_details_message) + .setMessage(R.string.share_playlist_with_titles_message) .setCancelable(true) - .setPositiveButton(R.string.share_playlist_with_details, (dialog, which) -> { + .setPositiveButton(R.string.share_playlist_with_titles, (dialog, which) -> { sharePlaylist(/* shouldSharePlaylistDetails= */ true); }) .setNegativeButton(R.string.share_playlist_with_list, (dialog, which) -> { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 43a62c53490..dcfb0ec96e9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -829,8 +829,8 @@ High quality \? Share Playlist - Share playlist with details such as playlist name and video titles or as a simple list of video URLs - Share with details + Share playlist with details such as playlist name and video titles or as a simple list of video URLs + Share with Titles Share URL list - %s: %s %s\n%s