From 7772ecf897e9e568e93e05aa78994d01cc55947d Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Mon, 29 Mar 2021 23:15:16 -0400 Subject: [PATCH] Binding LoginDialogPreference --- .../tachiyomi/widget/preference/LoginDialogPreference.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/preference/LoginDialogPreference.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/preference/LoginDialogPreference.kt index 96a650c08a..78bc241c90 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/preference/LoginDialogPreference.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/preference/LoginDialogPreference.kt @@ -13,7 +13,6 @@ import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.preference.PreferencesHelper import eu.kanade.tachiyomi.databinding.PrefAccountLoginBinding import eu.kanade.tachiyomi.ui.base.controller.DialogController -import kotlinx.android.synthetic.main.pref_account_login.view.* import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Job @@ -53,10 +52,10 @@ abstract class LoginDialogPreference( fun onViewCreated(view: View) { v = view.apply { if (usernameLabelRes != null) { - username_input.hint = view.context.getString(usernameLabelRes) + binding.usernameInput.hint = view.context.getString(usernameLabelRes) } - login.setOnClickListener { + binding.login.setOnClickListener { checkLogin() }