From 9766399539c70db3f89bddeb67c69cf09e7b70ae Mon Sep 17 00:00:00 2001 From: arkon Date: Tue, 13 Jun 2023 18:51:07 -0400 Subject: [PATCH] Don't update trackers after reading a chapter if Incognito Mode is enabled Closes #7228 --- .../main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt index ebf150008..ac5cf5ce7 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderViewModel.kt @@ -831,9 +831,10 @@ class ReaderViewModel( * will run in a background thread and errors are ignored. */ private fun updateTrackChapterRead(readerChapter: ReaderChapter) { + if (basePreferences.incognitoMode().get()) return if (!trackPreferences.autoUpdateTrack().get()) return - val manga = manga ?: return + val manga = manga ?: return val chapterRead = readerChapter.chapter.chapter_number.toDouble() val trackManager = Injekt.get()