[RU]Remanga hide Password (#6999)

* [RU]Remanga hide Password

* fix
This commit is contained in:
Eugene 2021-05-13 15:38:40 +05:00 committed by GitHub
parent bcc174e3a0
commit 9ddcfddf68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Remanga'
pkgNameSuffix = 'ru.remanga'
extClass = '.Remanga'
extVersionCode = 22
extVersionCode = 23
libVersion = '1.2'
}

View File

@ -570,6 +570,7 @@ class Remanga : ConfigurableSource, HttpSource() {
dialogTitle = title
if (isPassword) {
if (!value.isNullOrBlank()) { summary = "*****" }
setOnBindEditTextListener {
it.inputType = InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_PASSWORD
}
@ -577,7 +578,7 @@ class Remanga : ConfigurableSource, HttpSource() {
setOnPreferenceChangeListener { _, newValue ->
try {
val res = preferences.edit().putString(title, newValue as String).commit()
Toast.makeText(context, "Restart Tachiyomi to apply new setting.", Toast.LENGTH_LONG).show()
Toast.makeText(context, "Перезапустите Tachiyomi, чтобы применить новую настройку.", Toast.LENGTH_LONG).show()
res
} catch (e: Exception) {
e.printStackTrace()