diff --git a/app/src/main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt b/app/src/main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt index 41f297564..5490b4624 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/source/online/HttpSource.kt @@ -30,13 +30,6 @@ abstract class HttpSource : CatalogueSource { */ protected val network: NetworkHelper by injectLazy() -// /** -// * Preferences that a source may need. -// */ -// val preferences: SharedPreferences by lazy { -// Injekt.get().getSharedPreferences(source.getPreferenceKey(), Context.MODE_PRIVATE) -// } - /** * Base url of the website without the trailing slash, like: http://mysite.com */ 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 8b46cbafb..7d4953a22 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 @@ -2,7 +2,6 @@ package eu.kanade.tachiyomi.ui.reader import android.annotation.SuppressLint import android.annotation.TargetApi -import android.app.ActionBar import android.app.ProgressDialog import android.content.ClipData import android.content.Context @@ -212,7 +211,6 @@ class ReaderActivity : BaseRxActivity() readingModeToast?.cancel() progressDialog?.dismiss() progressDialog = null - listeners = mutableListOf() } /** @@ -534,23 +532,12 @@ class ReaderActivity : BaseRxActivity() ) } - private var listeners: MutableList = mutableListOf() - - fun addOnMenuVisibilityListener(listener: ActionBar.OnMenuVisibilityListener) { - listeners.add(listener) - } - - fun removeOnMenuVisibilityListener(listener: ActionBar.OnMenuVisibilityListener) { - listeners.remove(listener) - } - /** * Sets the visibility of the menu according to [visible] and with an optional parameter to * [animate] the views. */ fun setMenuVisibility(visible: Boolean, animate: Boolean = true) { menuVisible = visible - listeners.forEach { listener -> listener.onMenuVisibilityChanged(visible) } if (visible) { windowInsetsController.show(WindowInsetsCompat.Type.systemBars()) binding.readerMenu.isVisible = true