输入url参数对话框

pull/1705/head
kunfei 3 years ago
parent 68989edec8
commit 5c4d041007
  1. 15
      app/src/main/java/io/legado/app/ui/widget/UrlOptionDialog.kt

@ -6,6 +6,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.material.AlertDialog
import androidx.compose.material.Text
import androidx.compose.material.TextButton
import androidx.compose.material.TextField
import androidx.compose.runtime.Composable
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
@ -59,6 +60,10 @@ fun UrlOptionView(urlOption: AnalyzeUrl.UrlOption) {
mutableStateOf(urlOption.useWebView())
}
urlOption.useWebView(useWebView.value)
val method = remember {
mutableStateOf(urlOption.getMethod() ?: "")
}
urlOption.setMethod(method.value)
Column(Modifier.padding(6.dp)) {
Row(Modifier.padding(3.dp)) {
LabelledCheckBox(
@ -69,6 +74,14 @@ fun UrlOptionView(urlOption: AnalyzeUrl.UrlOption) {
label = "useWebView"
)
}
TextField(
value = method.value,
onValueChange = {
method.value = it
},
label = {
Text(text = "Method")
}
)
}
}
Loading…
Cancel
Save