mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
校验超时不再限制最小值,只能输入数字
This commit is contained in:
parent
1125d60d3a
commit
b830d5988c
@ -19,7 +19,7 @@ class CheckSourceConfig : BaseDialogFragment(R.layout.dialog_check_source_config
|
||||
|
||||
private val binding by viewBinding(DialogCheckSourceConfigBinding::bind)
|
||||
//允许的最小超时时间,秒
|
||||
private val minTimeout = 60L
|
||||
private val minTimeout = 0L
|
||||
|
||||
override fun onStart() {
|
||||
super.onStart()
|
||||
@ -80,7 +80,7 @@ class CheckSourceConfig : BaseDialogFragment(R.layout.dialog_check_source_config
|
||||
toastOnUi("${getString(R.string.timeout)}${getString(R.string.cannot_empty)}")
|
||||
return@onClick
|
||||
}
|
||||
text.toLong() < minTimeout -> {
|
||||
text.toLong() <= minTimeout -> {
|
||||
toastOnUi(
|
||||
"${getString(R.string.timeout)}${getString(R.string.less_than)}${minTimeout}${
|
||||
getString(
|
||||
|
@ -27,6 +27,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/check_source_timeout"
|
||||
android:digits="1234567890"
|
||||
tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
|
||||
|
||||
</io.legado.app.ui.widget.text.TextInputLayout>
|
||||
|
Loading…
Reference in New Issue
Block a user