Skip to content

Commit

Permalink
Notify the UI on download deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
gzsombor committed Jan 26, 2021
1 parent b6c51ca commit af1e253
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,12 @@ private boolean remove(String videoId) {
displayGenericError(ctx, exception);
})
.onErrorComplete()
.subscribeOn(Schedulers.io());
.subscribeOn(Schedulers.io())
.doOnComplete(() -> {
for (DownloadedVideosListener listener : listeners) {
listener.onDownloadedVideosUpdated();
}
});
}

private void removeParentFolderIfEmpty(Status file, File downloadParentFolder) {
Expand Down

0 comments on commit af1e253

Please sign in to comment.