From 63aeb8e249a0f785d7f349ffe07c518f438b96de Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 13 Mar 2022 22:02:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=93=E5=85=A5url=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../legado/app/ui/widget/UrlOptionDialog.kt | 44 ++++++++++++++++++- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/UrlOptionDialog.kt b/app/src/main/java/io/legado/app/ui/widget/UrlOptionDialog.kt index 1e991dae8..8f2b8e585 100644 --- a/app/src/main/java/io/legado/app/ui/widget/UrlOptionDialog.kt +++ b/app/src/main/java/io/legado/app/ui/widget/UrlOptionDialog.kt @@ -79,6 +79,18 @@ fun UrlOptionView(urlOption: AnalyzeUrl.UrlOption) { mutableStateOf("") } urlOption.setRetry(retry.value) + val type = remember { + mutableStateOf("") + } + urlOption.setType(type.value) + val webJs = remember { + mutableStateOf("") + } + urlOption.setWebJs(webJs.value) + val js = remember { + mutableStateOf("") + } + urlOption.setJs(js.value) Column { Row { LabelledCheckBox( @@ -99,7 +111,7 @@ fun UrlOptionView(urlOption: AnalyzeUrl.UrlOption) { } ) TextField( - value = method.value, + value = charset.value, onValueChange = { charset.value = it }, @@ -110,7 +122,7 @@ fun UrlOptionView(urlOption: AnalyzeUrl.UrlOption) { TextField( value = headers.value, onValueChange = { - charset.value = it + headers.value = it }, label = { Text(text = "headers") @@ -126,5 +138,33 @@ fun UrlOptionView(urlOption: AnalyzeUrl.UrlOption) { }, keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number) ) + TextField( + value = type.value, + onValueChange = { + type.value = it + }, + label = { + Text(text = "type") + }, + keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number) + ) + TextField( + value = webJs.value, + onValueChange = { + webJs.value = it + }, + label = { + Text(text = "webJs") + } + ) + TextField( + value = js.value, + onValueChange = { + js.value = it + }, + label = { + Text(text = "js") + } + ) } } \ No newline at end of file