Skip to content

Commit

Permalink
fix: 代码优化
Browse files Browse the repository at this point in the history
  • Loading branch information
Mystery00 committed Mar 30, 2024
1 parent 9570e59 commit e5c63c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ enum class Gender(val showTitle: String) {
companion object {
fun parseOld(sex: String): Gender =
when (sex) {
"" -> Gender.MALE
"" -> Gender.FEMALE
else -> Gender.UNKNOWN
"" -> MALE
"" -> FEMALE
else -> UNKNOWN
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.focusRequester
Expand All @@ -53,7 +52,6 @@ import vip.mystery0.xhu.timetable.viewmodel.LoginViewModel
class LoginActivity : BaseComposeActivity() {
private val viewModel: LoginViewModel by viewModels()

@OptIn(ExperimentalComposeUiApi::class)
@Composable
override fun BuildContent() {
val keyboardController = LocalSoftwareKeyboardController.current
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ private fun DrawLine() {
)
}

@OptIn(ExperimentalMaterial3Api::class)
@ExperimentalMaterialApi
@Composable
private fun DrawPoemsCard(
Expand Down

0 comments on commit e5c63c1

Please sign in to comment.