From a87c65872cad308cd24f36a955d87224e8007298 Mon Sep 17 00:00:00 2001 From: len Date: Fri, 11 Mar 2016 16:16:56 +0100 Subject: [PATCH] Fix login dialogs not showing the correct title --- .../kanade/tachiyomi/widget/preference/MangaSyncLoginDialog.kt | 2 +- .../eu/kanade/tachiyomi/widget/preference/SourceLoginDialog.kt | 2 +- app/src/main/res/layout/pref_account_login.xml | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/preference/MangaSyncLoginDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/preference/MangaSyncLoginDialog.kt index 02136ce7e..b6275b5a8 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/preference/MangaSyncLoginDialog.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/preference/MangaSyncLoginDialog.kt @@ -33,7 +33,7 @@ class MangaSyncLoginDialog : LoginDialogPreference() { } override fun setCredentialsOnView(view: View) = with(view) { - title.text = getString(R.string.login_title, sync.name) + dialog_title.text = getString(R.string.login_title, sync.name) username.setText(preferences.getMangaSyncUsername(sync)) password.setText(preferences.getMangaSyncPassword(sync)) } diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/preference/SourceLoginDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/preference/SourceLoginDialog.kt index 715e681ac..2f7d3cfb9 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/preference/SourceLoginDialog.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/preference/SourceLoginDialog.kt @@ -33,7 +33,7 @@ class SourceLoginDialog : LoginDialogPreference() { } override fun setCredentialsOnView(view: View) = with(view) { - title.text = getString(R.string.login_title, source.visibleName) + dialog_title.text = getString(R.string.login_title, source.visibleName) username.setText(preferences.getSourceUsername(source)) password.setText(preferences.getSourcePassword(source)) } diff --git a/app/src/main/res/layout/pref_account_login.xml b/app/src/main/res/layout/pref_account_login.xml index e4a30d9a1..696abd9e2 100644 --- a/app/src/main/res/layout/pref_account_login.xml +++ b/app/src/main/res/layout/pref_account_login.xml @@ -9,8 +9,7 @@