Fix incorrect extension group title locale

This commit is contained in:
Ivan Iskandar 2021-08-07 00:17:27 +07:00
parent fd45de5c58
commit b4acf43298
No known key found for this signature in database
GPG key ID: 2C57784F9E46D60D
2 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@ open class ExtensionController :
}
override fun createPresenter(): ExtensionPresenter {
return ExtensionPresenter()
return ExtensionPresenter(activity!!)
}
override fun createBinding(inflater: LayoutInflater) = ExtensionControllerBinding.inflate(inflater)

View file

@ -1,6 +1,6 @@
package eu.kanade.tachiyomi.ui.browse.extension
import android.app.Application
import android.content.Context
import android.os.Bundle
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
@ -23,6 +23,7 @@ private typealias ExtensionTuple =
* Presenter of [ExtensionController].
*/
open class ExtensionPresenter(
private val context: Context,
private val extensionManager: ExtensionManager = Injekt.get(),
private val preferences: PreferencesHelper = Injekt.get()
) : BasePresenter<ExtensionController>() {
@ -53,7 +54,6 @@ open class ExtensionPresenter(
@Synchronized
private fun toItems(tuple: ExtensionTuple): List<ExtensionItem> {
val context = Injekt.get<Application>()
val activeLangs = preferences.enabledLanguages().get()
val showNsfwExtensions = preferences.showNsfwExtension().get()