diff --git a/app/src/main/java/io/legado/app/ui/book/read/config/SpeakEngineEditDialog.kt b/app/src/main/java/io/legado/app/ui/book/read/config/SpeakEngineEditDialog.kt index 492bf4d71..bda1ad1fb 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/config/SpeakEngineEditDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/config/SpeakEngineEditDialog.kt @@ -10,6 +10,7 @@ import io.legado.app.R import io.legado.app.base.BaseDialogFragment import io.legado.app.data.entities.HttpTTS import io.legado.app.databinding.DialogHttpTtsEditBinding +import io.legado.app.lib.dialogs.alert import io.legado.app.lib.theme.primaryColor import io.legado.app.ui.about.AppLogDialog import io.legado.app.ui.login.SourceLoginActivity @@ -92,6 +93,12 @@ class SpeakEngineEditDialog() : BaseDialogFragment(R.layout.dialog_http_tts_edit } } } + R.id.menu_show_login_header -> alert { + setTitle(R.string.login_header) + dataFromView().getLoginHeader()?.let { loginHeader -> + setMessage(loginHeader) + } + } R.id.menu_del_login_header -> dataFromView().removeLoginHeader() R.id.menu_log -> showDialogFragment() R.id.menu_help -> help() diff --git a/app/src/main/java/io/legado/app/ui/login/SourceLoginDialog.kt b/app/src/main/java/io/legado/app/ui/login/SourceLoginDialog.kt index 6847bd8a2..1496e1a43 100644 --- a/app/src/main/java/io/legado/app/ui/login/SourceLoginDialog.kt +++ b/app/src/main/java/io/legado/app/ui/login/SourceLoginDialog.kt @@ -14,6 +14,7 @@ import io.legado.app.data.entities.BaseSource import io.legado.app.databinding.DialogLoginBinding import io.legado.app.databinding.ItemFilletTextBinding import io.legado.app.databinding.ItemSourceEditBinding +import io.legado.app.lib.dialogs.alert import io.legado.app.lib.theme.primaryColor import io.legado.app.ui.about.AppLogDialog import io.legado.app.utils.* @@ -92,6 +93,12 @@ class SourceLoginDialog : BaseDialogFragment(R.layout.dialog_login) { } login(source, loginData) } + R.id.menu_show_login_header -> alert { + setTitle(R.string.login_header) + source.getLoginHeader()?.let { loginHeader -> + setMessage(loginHeader) + } + } R.id.menu_del_login_header -> source.removeLoginHeader() R.id.menu_log -> showDialogFragment() } diff --git a/app/src/main/res/menu/source_login.xml b/app/src/main/res/menu/source_login.xml index 3e87ccf80..cc7db0395 100644 --- a/app/src/main/res/menu/source_login.xml +++ b/app/src/main/res/menu/source_login.xml @@ -10,6 +10,11 @@ android:title="@string/ok" app:showAsAction="always" /> + + + + 查看 打开 删除登录头 + 查看登录头 + 登录头 diff --git a/app/src/main/res/values-ja-rJP/strings.xml b/app/src/main/res/values-ja-rJP/strings.xml index 4b5cee8f4..e9ef29aad 100644 --- a/app/src/main/res/values-ja-rJP/strings.xml +++ b/app/src/main/res/values-ja-rJP/strings.xml @@ -902,5 +902,7 @@ 查看 打开 删除登录头 + 查看登录头 + 登录头 diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 8f0a97892..2f8f9bbe2 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -902,5 +902,7 @@ 查看 打开 删除登录头 + 查看登录头 + 登录头 diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml index 5bd7a5810..955a1a155 100644 --- a/app/src/main/res/values-zh-rHK/strings.xml +++ b/app/src/main/res/values-zh-rHK/strings.xml @@ -899,5 +899,7 @@ 查看 打开 删除登录头 + 查看登录头 + 登录头 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 6b0445521..9fa8e6148 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -901,5 +901,7 @@ 查看 打开 删除登录头 + 查看登录头 + 登录头 diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml index c7db5e70f..350903004 100644 --- a/app/src/main/res/values-zh/strings.xml +++ b/app/src/main/res/values-zh/strings.xml @@ -901,5 +901,7 @@ 查看 打开 删除登录头 + 查看登录头 + 登录头 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 942c3f452..7469ff404 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -902,5 +902,7 @@ 查看 打开 删除登录头 + 查看登录头 + 登录头