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 5c825e5af..bf90a1081 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 @@ -52,6 +52,7 @@ class ReaderActivity : BaseRxActivity() { const val VERTICAL = 3 const val WEBTOON = 4 + const val WHITE_THEME = 0 const val BLACK_THEME = 1 const val MENU_VISIBLE = "menu_visible" @@ -64,8 +65,7 @@ class ReaderActivity : BaseRxActivity() { private var viewer: BaseReader? = null - lateinit var subscriptions: CompositeSubscription - private set + val subscriptions by lazy { CompositeSubscription() } private var customBrightnessSubscription: Subscription? = null @@ -95,7 +95,6 @@ class ReaderActivity : BaseRxActivity() { } setupToolbar(toolbar) - subscriptions = CompositeSubscription() initializeSettings() initializeBottomMenu()