diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt index b0a9ce4a1c..36933c50f6 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/globalsearch/GlobalSearchPresenter.kt @@ -68,7 +68,7 @@ open class GlobalSearchPresenter( */ private var fetchImageSubscription: Subscription? = null - private val extensionManager by injectLazy() + private val extensionManager: ExtensionManager by injectLazy() private var extensionFilter: String? = null diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt index 205c0d605c..4f80e098dd 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt @@ -76,7 +76,7 @@ import kotlin.math.abs @RequiresPresenter(ReaderPresenter::class) class ReaderActivity : BaseRxActivity() { - private val preferences by injectLazy() + private val preferences: PreferencesHelper by injectLazy() /** * The maximum bitmap size supported by the device. diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt index d8fc81ab54..48b3230101 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt @@ -21,7 +21,7 @@ import uy.kohesive.injekt.injectLazy */ class ReaderSettingsSheet(private val activity: ReaderActivity) : BottomSheetDialog(activity) { - private val preferences by injectLazy() + private val preferences: PreferencesHelper by injectLazy() private val binding = ReaderSettingsSheetBinding.inflate(activity.layoutInflater, null, false) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/DownloadPageLoader.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/DownloadPageLoader.kt index 838242d22b..90aeeed0d9 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/DownloadPageLoader.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/DownloadPageLoader.kt @@ -21,10 +21,8 @@ class DownloadPageLoader( private val downloadManager: DownloadManager ) : PageLoader() { - /** - * The application context. Needed to open input streams. - */ - private val context by injectLazy() + // Needed to open input streams + private val context: Application by injectLazy() /** * Returns an observable containing the pages found on this downloaded chapter. diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryAdapter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryAdapter.kt index d85a41a206..4772c60959 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryAdapter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryAdapter.kt @@ -18,7 +18,7 @@ import java.text.DecimalFormatSymbols class HistoryAdapter(controller: HistoryController) : FlexibleAdapter>(null, controller, true) { - val sourceManager by injectLazy() + val sourceManager: SourceManager by injectLazy() val resumeClickListener: OnResumeClickListener = controller val removeClickListener: OnRemoveClickListener = controller diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/security/SecureActivityDelegate.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/security/SecureActivityDelegate.kt index 5549ae2fb9..aebbc61ea3 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/security/SecureActivityDelegate.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/security/SecureActivityDelegate.kt @@ -13,7 +13,7 @@ import java.util.Date class SecureActivityDelegate(private val activity: FragmentActivity) { - private val preferences by injectLazy() + private val preferences: PreferencesHelper by injectLazy() fun onCreate() { preferences.secureScreen().asFlow() diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt index c43fa01c1a..2a00ad948d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt @@ -34,7 +34,7 @@ import uy.kohesive.injekt.injectLazy class WebViewActivity : BaseViewBindingActivity() { - private val sourceManager by injectLazy() + private val sourceManager: SourceManager by injectLazy() private var bundle: Bundle? = null