pull/1395/head
gedoor 3 years ago
parent b10eb256fa
commit 7a548e48d8
  1. 7
      app/src/main/java/io/legado/app/ui/book/read/config/SpeakEngineEditDialog.kt
  2. 7
      app/src/main/java/io/legado/app/ui/login/SourceLoginDialog.kt
  3. 5
      app/src/main/res/menu/source_login.xml
  4. 5
      app/src/main/res/menu/speak_engine_edit.xml
  5. 2
      app/src/main/res/values-es-rES/strings.xml
  6. 2
      app/src/main/res/values-ja-rJP/strings.xml
  7. 2
      app/src/main/res/values-pt-rBR/strings.xml
  8. 2
      app/src/main/res/values-zh-rHK/strings.xml
  9. 2
      app/src/main/res/values-zh-rTW/strings.xml
  10. 2
      app/src/main/res/values-zh/strings.xml
  11. 2
      app/src/main/res/values/strings.xml

@ -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<AppLogDialog>()
R.id.menu_help -> help()

@ -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<AppLogDialog>()
}

@ -10,6 +10,11 @@
android:title="@string/ok"
app:showAsAction="always" />
<item
android:id="@+id/menu_show_login_header"
android:title="@string/show_login_header"
app:showAsAction="never" />
<item
android:id="@+id/menu_del_login_header"
android:title="@string/del_login_header"

@ -15,6 +15,11 @@
android:title="@string/login"
app:showAsAction="never" />
<item
android:id="@+id/menu_show_login_header"
android:title="@string/show_login_header"
app:showAsAction="never" />
<item
android:id="@+id/menu_del_login_header"
android:title="@string/del_login_header"

@ -898,5 +898,7 @@
<string name="see">查看</string>
<string name="open">打开</string>
<string name="del_login_header">删除登录头</string>
<string name="show_login_header">查看登录头</string>
<string name="login_header">登录头</string>
</resources>

@ -902,5 +902,7 @@
<string name="see">查看</string>
<string name="open">打开</string>
<string name="del_login_header">删除登录头</string>
<string name="show_login_header">查看登录头</string>
<string name="login_header">登录头</string>
</resources>

@ -902,5 +902,7 @@
<string name="see">查看</string>
<string name="open">打开</string>
<string name="del_login_header">删除登录头</string>
<string name="show_login_header">查看登录头</string>
<string name="login_header">登录头</string>
</resources>

@ -899,5 +899,7 @@
<string name="see">查看</string>
<string name="open">打开</string>
<string name="del_login_header">删除登录头</string>
<string name="show_login_header">查看登录头</string>
<string name="login_header">登录头</string>
</resources>

@ -901,5 +901,7 @@
<string name="see">查看</string>
<string name="open">打开</string>
<string name="del_login_header">删除登录头</string>
<string name="show_login_header">查看登录头</string>
<string name="login_header">登录头</string>
</resources>

@ -901,5 +901,7 @@
<string name="see">查看</string>
<string name="open">打开</string>
<string name="del_login_header">删除登录头</string>
<string name="show_login_header">查看登录头</string>
<string name="login_header">登录头</string>
</resources>

@ -902,5 +902,7 @@
<string name="see">查看</string>
<string name="open">打开</string>
<string name="del_login_header">删除登录头</string>
<string name="show_login_header">查看登录头</string>
<string name="login_header">登录头</string>
</resources>

Loading…
Cancel
Save