修复无网崩溃
This commit is contained in:
@@ -84,6 +84,7 @@ fun LoginPage() {
|
||||
mutableStateOf(false)
|
||||
}
|
||||
suspend fun checkGoogleLoginEnable() {
|
||||
try {
|
||||
val result = dictService.getDistList(
|
||||
listOf(
|
||||
ConstVars.DICT_KEY_ENABLE_GOOGLE_LOGIN,
|
||||
@@ -99,6 +100,9 @@ fun LoginPage() {
|
||||
showGoogleLogin = false
|
||||
}
|
||||
AppState.enableGoogleLogin = showGoogleLogin
|
||||
} catch (_: Exception) {
|
||||
|
||||
}
|
||||
}
|
||||
LaunchedEffect(Unit) {
|
||||
statusBarController.setStatusBarColor(Color.Transparent, darkIcons = !AppState.darkMode)
|
||||
|
||||
Reference in New Issue
Block a user