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 dd6b43dee..492bf4d71 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 @@ -11,6 +11,7 @@ import io.legado.app.base.BaseDialogFragment import io.legado.app.data.entities.HttpTTS import io.legado.app.databinding.DialogHttpTtsEditBinding import io.legado.app.lib.theme.primaryColor +import io.legado.app.ui.about.AppLogDialog import io.legado.app.ui.login.SourceLoginActivity import io.legado.app.ui.widget.code.addJsPattern import io.legado.app.ui.widget.code.addJsonPattern @@ -91,6 +92,8 @@ class SpeakEngineEditDialog() : BaseDialogFragment(R.layout.dialog_http_tts_edit } } } + R.id.menu_del_login_header -> dataFromView().removeLoginHeader() + R.id.menu_log -> showDialogFragment() R.id.menu_help -> help() } return true diff --git a/app/src/main/res/menu/speak_engine_edit.xml b/app/src/main/res/menu/speak_engine_edit.xml index 09d88a0cb..3c01094fc 100644 --- a/app/src/main/res/menu/speak_engine_edit.xml +++ b/app/src/main/res/menu/speak_engine_edit.xml @@ -15,6 +15,16 @@ android:title="@string/login" app:showAsAction="never" /> + + + +