We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b2d730 commit a211741Copy full SHA for a211741
android/src/main/kotlin/com/google/maps/flutter/navigation/Convert.kt
@@ -333,9 +333,10 @@ object Convert {
333
*/
334
fun convertNavigationForceNightModeToDto(forceNightMode: Int): NavigationForceNightModeDto {
335
return when (forceNightMode) {
336
+ ForceNightMode.AUTO -> NavigationForceNightModeDto.AUTO
337
ForceNightMode.FORCE_DAY -> NavigationForceNightModeDto.FORCE_DAY
338
ForceNightMode.FORCE_NIGHT -> NavigationForceNightModeDto.FORCE_NIGHT
- else -> NavigationForceNightModeDto.AUTO
339
+ else -> throw FlutterError("convertError", "Unknown ForceNightMode: $forceNightMode")
340
}
341
342
0 commit comments