Skip to content

Commit

Permalink
playlist actions: errors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliskov committed Nov 26, 2024
1 parent 4567f12 commit df1d8a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ private void removePlaylist(Video video) {
Observable<Void> action = manager.removePlaylistObserve(video.playlistId);
GeneralData.instance(getContext()).setPlaylistOrder(video.playlistId, -1);
RxHelper.execute(action,
(error) -> MessageHelpers.showMessage(getContext(), getContext().getString(R.string.cant_delete_empty_playlist)),
(error) -> MessageHelpers.showMessage(getContext(), error.getLocalizedMessage()),
() -> MessageHelpers.showMessage(getContext(), getContext().getString(R.string.removed_from_playlists))
);
}
Expand All @@ -328,7 +328,7 @@ private void savePlaylist(Video video) {
MediaItemService manager = YouTubeMediaItemService.instance();
Observable<Void> action = manager.savePlaylistObserve(video.playlistId);
RxHelper.execute(action,
(error) -> MessageHelpers.showMessage(getContext(), getContext().getString(R.string.cant_save_playlist)),
(error) -> MessageHelpers.showMessage(getContext(), error.getLocalizedMessage()),
() -> MessageHelpers.showMessage(getContext(), getContext().getString(R.string.saved_to_playlists))
);
}
Expand Down

0 comments on commit df1d8a5

Please sign in to comment.