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