From 406c5bde11d5e1be4e5f7c9a5ee4ade42fcbc844 Mon Sep 17 00:00:00 2001 From: arkon Date: Tue, 23 Jun 2020 22:17:19 -0400 Subject: [PATCH] Open error log on tapping notification body (closes #3376) --- .../kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt | 6 +++++- .../java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt index 0722165ee..8982730e0 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt @@ -104,10 +104,14 @@ class LibraryUpdateNotifier(private val context: Context) { ) ) setSmallIcon(R.drawable.ic_tachi) + + val errorLogIntent = NotificationReceiver.openErrorLogPendingActivity(context, uri) + + setContentIntent(errorLogIntent) addAction( R.drawable.nnf_ic_file_folder, context.getString(R.string.action_open_log), - NotificationReceiver.openErrorLogPendingActivity(context, uri) + errorLogIntent ) } .build() diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt index 26eb150bb..83aac83d6 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderPresenter.kt @@ -17,7 +17,6 @@ import eu.kanade.tachiyomi.source.SourceManager import eu.kanade.tachiyomi.source.model.Page import eu.kanade.tachiyomi.ui.base.presenter.BasePresenter import eu.kanade.tachiyomi.ui.reader.loader.ChapterLoader -import eu.kanade.tachiyomi.ui.reader.loader.DownloadPageLoader import eu.kanade.tachiyomi.ui.reader.model.ReaderChapter import eu.kanade.tachiyomi.ui.reader.model.ReaderPage import eu.kanade.tachiyomi.ui.reader.model.ViewerChapters