mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 20:43:16 -05:00
Fix settings search crash (fixes #5002)
Can't lateinit since the controllers are instantiated via reflection.
This commit is contained in:
parent
3c947f323f
commit
b453be081e
1 changed files with 1 additions and 2 deletions
|
@ -33,11 +33,10 @@ abstract class SettingsController : PreferenceController() {
|
||||||
|
|
||||||
var preferenceKey: String? = null
|
var preferenceKey: String? = null
|
||||||
val preferences: PreferencesHelper = Injekt.get()
|
val preferences: PreferencesHelper = Injekt.get()
|
||||||
lateinit var viewScope: CoroutineScope
|
val viewScope: CoroutineScope = MainScope()
|
||||||
private var themedContext: Context? = null
|
private var themedContext: Context? = null
|
||||||
|
|
||||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup, savedInstanceState: Bundle?): View {
|
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup, savedInstanceState: Bundle?): View {
|
||||||
viewScope = MainScope()
|
|
||||||
val view = super.onCreateView(inflater, container, savedInstanceState)
|
val view = super.onCreateView(inflater, container, savedInstanceState)
|
||||||
|
|
||||||
if (this is RootController) {
|
if (this is RootController) {
|
||||||
|
|
Loading…
Reference in a new issue