Binding LoginDialogPreference
This commit is contained in:
parent
d4addb2e13
commit
7772ecf897
@ -13,7 +13,6 @@ import eu.kanade.tachiyomi.R
|
|||||||
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
|
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
|
||||||
import eu.kanade.tachiyomi.databinding.PrefAccountLoginBinding
|
import eu.kanade.tachiyomi.databinding.PrefAccountLoginBinding
|
||||||
import eu.kanade.tachiyomi.ui.base.controller.DialogController
|
import eu.kanade.tachiyomi.ui.base.controller.DialogController
|
||||||
import kotlinx.android.synthetic.main.pref_account_login.view.*
|
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.Job
|
import kotlinx.coroutines.Job
|
||||||
@ -53,10 +52,10 @@ abstract class LoginDialogPreference(
|
|||||||
fun onViewCreated(view: View) {
|
fun onViewCreated(view: View) {
|
||||||
v = view.apply {
|
v = view.apply {
|
||||||
if (usernameLabelRes != null) {
|
if (usernameLabelRes != null) {
|
||||||
username_input.hint = view.context.getString(usernameLabelRes)
|
binding.usernameInput.hint = view.context.getString(usernameLabelRes)
|
||||||
}
|
}
|
||||||
|
|
||||||
login.setOnClickListener {
|
binding.login.setOnClickListener {
|
||||||
checkLogin()
|
checkLogin()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user