More consistent injectLazy style
This commit is contained in:
@@ -76,7 +76,7 @@ import kotlin.math.abs
|
||||
@RequiresPresenter(ReaderPresenter::class)
|
||||
class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>() {
|
||||
|
||||
private val preferences by injectLazy<PreferencesHelper>()
|
||||
private val preferences: PreferencesHelper by injectLazy()
|
||||
|
||||
/**
|
||||
* The maximum bitmap size supported by the device.
|
||||
|
||||
@@ -21,7 +21,7 @@ import uy.kohesive.injekt.injectLazy
|
||||
*/
|
||||
class ReaderSettingsSheet(private val activity: ReaderActivity) : BottomSheetDialog(activity) {
|
||||
|
||||
private val preferences by injectLazy<PreferencesHelper>()
|
||||
private val preferences: PreferencesHelper by injectLazy()
|
||||
|
||||
private val binding = ReaderSettingsSheetBinding.inflate(activity.layoutInflater, null, false)
|
||||
|
||||
|
||||
@@ -21,10 +21,8 @@ class DownloadPageLoader(
|
||||
private val downloadManager: DownloadManager
|
||||
) : PageLoader() {
|
||||
|
||||
/**
|
||||
* The application context. Needed to open input streams.
|
||||
*/
|
||||
private val context by injectLazy<Application>()
|
||||
// Needed to open input streams
|
||||
private val context: Application by injectLazy()
|
||||
|
||||
/**
|
||||
* Returns an observable containing the pages found on this downloaded chapter.
|
||||
|
||||
Reference in New Issue
Block a user