mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化tts导入
This commit is contained in:
parent
5d23366bf0
commit
911eb83c3f
@ -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
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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 -->
|
||||
|
Loading…
Reference in New Issue
Block a user