mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
chore(android): simplify PermissionState code
This commit is contained in:
@@ -15,9 +15,7 @@ enum class PermissionState(private val state: String) {
|
||||
|
||||
companion object {
|
||||
fun byState(state: String): PermissionState {
|
||||
var state = state
|
||||
state = state.uppercase(Locale.ROOT).replace('-', '_')
|
||||
return valueOf(state)
|
||||
return valueOf(state.uppercase(Locale.ROOT).replace('-', '_'))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user