Skip to content

Commit efae6cc

Browse files
committed
fix: Use Map instead of MutableMap
1 parent 8e919c8 commit efae6cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package/android/src/main/java/com/mrousavy/camera/react/CameraDevicesManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ class CameraDevicesManager(private val reactContext: ReactApplicationContext) :
104104
eventEmitter.emit("CameraDevicesChanged", devices)
105105
}
106106

107-
override fun getConstants(): MutableMap<String, Any?> {
107+
override fun getConstants(): Map<String, Any?> {
108108
val devices = getDevicesJson()
109109
val preferredDevice = if (devices.size() > 0) devices.getMap(0) else null
110110

111-
return mutableMapOf(
111+
return mapOf(
112112
"availableCameraDevices" to devices,
113113
"userPreferredCameraDevice" to preferredDevice?.toHashMap()
114114
)

0 commit comments

Comments
 (0)