Skip to content

Commit

Permalink
change Double to Number
Browse files Browse the repository at this point in the history
  • Loading branch information
Macrow committed Jun 19, 2020
1 parent b17dd47 commit bdd398f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BeanCovertor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ fun mapToLiveInjectStreamConfig(map: Map<*, *>): LiveInjectStreamConfig {

fun mapToCameraCapturerConfiguration(map: Map<*, *>): CameraCapturerConfiguration {
return CameraCapturerConfiguration(
intToCapturerOutputPreference((map["preference"] as Double).toInt()),
intToCameraDirection((map["cameraDirection"] as Double).toInt())
intToCapturerOutputPreference((map["preference"] as Number).toInt()),
intToCameraDirection((map["cameraDirection"] as Number).toInt())
)
}

Expand Down

0 comments on commit bdd398f

Please sign in to comment.