优化tts导入

This commit is contained in:
kunfei 2022-05-08 20:19:43 +08:00
parent 5d23366bf0
commit 911eb83c3f
9 changed files with 23 additions and 0 deletions

View File

@ -97,6 +97,7 @@ class ReplaceEditActivity :
cbScopeTitle.isChecked = replaceRule.scopeTitle
cbScopeContent.isChecked = replaceRule.scopeContent
etScope.setText(replaceRule.scope)
etTimeout.setText(replaceRule.timeoutMillisecond.toString())
}
private fun getReplaceRule(): ReplaceRule = binding.run {
@ -109,6 +110,7 @@ class ReplaceEditActivity :
replaceRule.scopeTitle = cbScopeTitle.isChecked
replaceRule.scopeContent = cbScopeContent.isChecked
replaceRule.scope = etScope.text.toString()
replaceRule.timeoutMillisecond = etTimeout.text.toString().toLong()
return replaceRule
}

View File

@ -139,6 +139,20 @@
tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
</io.legado.app.ui.widget.text.TextInputLayout>
<io.legado.app.ui.widget.text.TextInputLayout
android:id="@+id/til_timeout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/timeout_millisecond">
<io.legado.app.lib.theme.view.ThemeEditText
android:id="@+id/et_timeout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number"
tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
</io.legado.app.ui.widget.text.TextInputLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>

View File

@ -973,5 +973,6 @@
<string name="soure_change_source">是否确认换源</string>
<string name="input_verification_code">输入验证码</string>
<string name="verification_code">验证码</string>
<string name="timeout_millisecond">超时毫秒数</string>
<!-- string end -->
</resources>

View File

@ -976,5 +976,6 @@
<string name="soure_change_source">是否确认换源</string>
<string name="input_verification_code">输入验证码</string>
<string name="verification_code">验证码</string>
<string name="timeout_millisecond">超时毫秒数</string>
<!-- string end -->
</resources>

View File

@ -976,5 +976,6 @@
<string name="soure_change_source">是否确认换源</string>
<string name="input_verification_code">输入验证码</string>
<string name="verification_code">验证码</string>
<string name="timeout_millisecond">超时毫秒数</string>
<!-- string end -->
</resources>

View File

@ -973,5 +973,6 @@
<string name="soure_change_source">是否确认换源</string>
<string name="input_verification_code">输入验证码</string>
<string name="verification_code">验证码</string>
<string name="timeout_millisecond">超时毫秒数</string>
<!-- string end -->
</resources>

View File

@ -975,5 +975,6 @@
<string name="soure_change_source">是否确认换源</string>
<string name="input_verification_code">输入验证码</string>
<string name="verification_code">验证码</string>
<string name="timeout_millisecond">超时毫秒数</string>
<!-- string end -->
</resources>

View File

@ -975,5 +975,6 @@
<string name="soure_change_source">是否确认换源</string>
<string name="input_verification_code">输入验证码</string>
<string name="verification_code">验证码</string>
<string name="timeout_millisecond">超时毫秒数</string>
<!-- string end -->
</resources>

View File

@ -976,6 +976,7 @@
<string name="soure_change_source">是否确认换源</string>
<string name="input_verification_code">输入验证码</string>
<string name="verification_code">验证码</string>
<string name="timeout_millisecond">超时毫秒数</string>
<!-- string end -->