-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Playlist and video names to local playlist sharing #9060
Added Playlist and video names to local playlist sharing #9060
Conversation
Kudos, SonarCloud Quality Gate passed! |
.subscribe(urlsText -> ShareUtils.shareText( | ||
requireContext(), name, name + " \n\n" + urlsText), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would undo this part of the change. Sharing text on Android already provides the title
and content
fields, so you shouldn't add the title at the beginning of the content again.
.map(StreamEntity::getUrl) | ||
.collect(Collectors.joining("\n")))) | ||
.map(streamEntity -> streamEntity.getTitle() + " " + streamEntity.getUrl()) | ||
.collect(Collectors.joining("\n\n")))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also undo this: why two newlines?
.collect(Collectors.joining("\n\n")))) | |
.collect(Collectors.joining("\n")))) |
@@ -381,10 +381,11 @@ public void sharePlaylist() { | |||
disposables.add(playlistManager.getPlaylistStreams(playlistId) | |||
.flatMapSingle(playlist -> Single.just(playlist.stream() | |||
.map(PlaylistStreamEntry::getStreamEntity) | |||
.map(StreamEntity::getUrl) | |||
.collect(Collectors.joining("\n")))) | |||
.map(streamEntity -> streamEntity.getTitle() + " " + streamEntity.getUrl()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is better to swap title and URL, since URLs are usually all the same length, while titles are not. This way the urls would somewhat align better and be easier to click, and titles would still all start roughly from the same column. Anyway, if you disagree with me it's fine, we can keep it as it is.
What is it?
Description of the changes in your PR
-Updated the string generated when sharing a local playlist. It now includes the playlist name, and video titles.
Fixes the following issue(s)
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.
Due diligence