Lock drawer on SignInScreen
This commit is contained in:
1 parent
9b0f6fe433
commit
90b4c16166
3 files changed
+6
-12
No files matched your search
@@ -59,6 +59,7 @@ import com.hippo.ehviewer.Settings
|
||||
import com.hippo.ehviewer.client.EhEngine
|
||||
import com.hippo.ehviewer.client.EhUrl
|
||||
import com.hippo.ehviewer.client.EhUtils
|
||||
import com.hippo.ehviewer.ui.LockDrawer
|
||||
import com.hippo.ehviewer.ui.StartDestination
|
||||
import com.hippo.ehviewer.ui.destinations.WebViewSignInScreenDestination
|
||||
import com.hippo.ehviewer.ui.openBrowser
|
||||
@@ -78,6 +79,7 @@ import kotlinx.coroutines.Job
|
||||
@Destination
|
||||
@Composable
|
||||
fun SignInScreen(navigator: DestinationsNavigator) {
|
||||
LockDrawer(true)
|
||||
val windowSizeClass = LocalWindowSizeClass.current
|
||||
val coroutineScope = rememberCoroutineScope()
|
||||
val focusManager = LocalFocusManager.current
|
||||
|
||||
@@ -41,12 +41,8 @@ fun MyTagsScreen(navigator: DestinationsNavigator) {
|
||||
val state = rememberWebViewState(url = url)
|
||||
WebView(
|
||||
state = state,
|
||||
modifier = Modifier
|
||||
.padding(paddingValues)
|
||||
.fillMaxSize(),
|
||||
onCreated = {
|
||||
it.setDefaultSettings()
|
||||
},
|
||||
modifier = Modifier.padding(paddingValues).fillMaxSize(),
|
||||
onCreated = { it.setDefaultSettings() },
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -65,12 +65,8 @@ fun UConfigScreen(navigator: DestinationsNavigator) {
|
||||
val state = rememberWebViewState(url = url)
|
||||
WebView(
|
||||
state = state,
|
||||
modifier = Modifier
|
||||
.padding(paddingValues)
|
||||
.fillMaxSize(),
|
||||
onCreated = {
|
||||
it.setDefaultSettings()
|
||||
},
|
||||
modifier = Modifier.padding(paddingValues).fillMaxSize(),
|
||||
onCreated = { it.setDefaultSettings() },
|
||||
factory = { WebView(it).apply { webview.set(this) } },
|
||||
)
|
||||
val applyTip = stringResource(id = R.string.apply_tip)
|
||||
|
||||
Reference in new issue
Block a user