More consistent injectLazy style
(cherry picked from commit f667f85fa5857bee1f55217d28d1e751cbb8a66b)
This commit is contained in:
parent
c92c9fada5
commit
25caba6905
@ -69,7 +69,7 @@ open class GlobalSearchPresenter(
|
|||||||
*/
|
*/
|
||||||
private var fetchImageSubscription: Subscription? = null
|
private var fetchImageSubscription: Subscription? = null
|
||||||
|
|
||||||
private val extensionManager by injectLazy<ExtensionManager>()
|
private val extensionManager: ExtensionManager by injectLazy()
|
||||||
|
|
||||||
private var extensionFilter: String? = null
|
private var extensionFilter: String? = null
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ import kotlin.time.seconds
|
|||||||
@RequiresPresenter(ReaderPresenter::class)
|
@RequiresPresenter(ReaderPresenter::class)
|
||||||
class ReaderActivity : BaseRxActivity<ReaderActivityBinding, ReaderPresenter>() {
|
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.
|
* 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) {
|
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)
|
private val binding = ReaderSettingsSheetBinding.inflate(activity.layoutInflater, null, false)
|
||||||
|
|
||||||
|
@ -26,10 +26,8 @@ class DownloadPageLoader(
|
|||||||
private val downloadManager: DownloadManager
|
private val downloadManager: DownloadManager
|
||||||
) : PageLoader() {
|
) : PageLoader() {
|
||||||
|
|
||||||
/**
|
// Needed to open input streams
|
||||||
* The application context. Needed to open input streams.
|
private val context: Application by injectLazy()
|
||||||
*/
|
|
||||||
private val context by injectLazy<Application>()
|
|
||||||
|
|
||||||
private val downloadProvider by lazy { DownloadProvider(context) }
|
private val downloadProvider by lazy { DownloadProvider(context) }
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ import java.text.DecimalFormatSymbols
|
|||||||
class HistoryAdapter(controller: HistoryController) :
|
class HistoryAdapter(controller: HistoryController) :
|
||||||
FlexibleAdapter<IFlexible<*>>(null, controller, true) {
|
FlexibleAdapter<IFlexible<*>>(null, controller, true) {
|
||||||
|
|
||||||
val sourceManager by injectLazy<SourceManager>()
|
val sourceManager: SourceManager by injectLazy()
|
||||||
|
|
||||||
val resumeClickListener: OnResumeClickListener = controller
|
val resumeClickListener: OnResumeClickListener = controller
|
||||||
val removeClickListener: OnRemoveClickListener = controller
|
val removeClickListener: OnRemoveClickListener = controller
|
||||||
|
@ -18,7 +18,7 @@ import kotlin.time.minutes
|
|||||||
|
|
||||||
class SecureActivityDelegate(private val activity: FragmentActivity) {
|
class SecureActivityDelegate(private val activity: FragmentActivity) {
|
||||||
|
|
||||||
private val preferences by injectLazy<PreferencesHelper>()
|
private val preferences: PreferencesHelper by injectLazy()
|
||||||
|
|
||||||
fun onCreate() {
|
fun onCreate() {
|
||||||
preferences.secureScreen().asFlow()
|
preferences.secureScreen().asFlow()
|
||||||
|
@ -34,7 +34,7 @@ import uy.kohesive.injekt.injectLazy
|
|||||||
|
|
||||||
class WebViewActivity : BaseViewBindingActivity<WebviewActivityBinding>() {
|
class WebViewActivity : BaseViewBindingActivity<WebviewActivityBinding>() {
|
||||||
|
|
||||||
private val sourceManager by injectLazy<SourceManager>()
|
private val sourceManager: SourceManager by injectLazy()
|
||||||
|
|
||||||
private var bundle: Bundle? = null
|
private var bundle: Bundle? = null
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user