Respect system DataSaver

This commit is contained in:
Koitharu
2023-05-24 14:27:04 +03:00
parent dc358ae6a2
commit 47f346b42c
3 changed files with 28 additions and 10 deletions

View File

@@ -116,7 +116,7 @@ class MangaPrefetchService : CoroutineIntentService() {
return false
}
val entryPoint = EntryPointAccessors.fromApplication(context, PrefetchCompanionEntryPoint::class.java)
return entryPoint.contentCache.isCachingEnabled && entryPoint.settings.isContentPrefetchEnabled()
return entryPoint.contentCache.isCachingEnabled && entryPoint.settings.isContentPrefetchEnabled
}
}
}