File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ public enum UserAction {
2626 DOWNLOAD_OPEN_DIALOG ("download open dialog" ),
2727 DOWNLOAD_POSTPROCESSING ("download post-processing" ),
2828 DOWNLOAD_FAILED ("download failed" ),
29+ NEW_STREAMS_NOTIFICATIONS ("new streams notifications" ),
2930 PREFERENCES_MIGRATION ("migration of preferences" ),
3031 SHARE_TO_NEWPIPE ("share to newpipe" ),
3132 CHECK_FOR_NEW_APP_VERSION ("check for new app version" );
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
1717import io.reactivex.rxjava3.core.Single
1818import org.schabi.newpipe.App
1919import org.schabi.newpipe.R
20+ import org.schabi.newpipe.error.ErrorInfo
21+ import org.schabi.newpipe.error.ErrorUtil
22+ import org.schabi.newpipe.error.UserAction
2023import org.schabi.newpipe.local.feed.service.FeedLoadManager
2124import org.schabi.newpipe.local.feed.service.FeedLoadService
2225import java.util.concurrent.TimeUnit
@@ -59,7 +62,10 @@ class NotificationWorker(
5962 }
6063 .doOnError { throwable ->
6164 Log .e(TAG , " Error while displaying streams notifications" , throwable)
62- // TODO show error notification
65+ ErrorUtil .createNotification(
66+ applicationContext,
67+ ErrorInfo (throwable, UserAction .NEW_STREAMS_NOTIFICATIONS , " main worker" )
68+ )
6369 }
6470 .onErrorReturnItem(Result .failure())
6571 } else {
You can’t perform that action at this time.
0 commit comments