File tree 1 file changed +3
-3
lines changed
android/src/main/java/com/reactnativecommunity/imageeditor
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ class ImageEditorModuleImpl(private val reactContext: ReactApplicationContext) {
196
196
y : Int ,
197
197
width : Int ,
198
198
height : Int ,
199
- headers : HashMap <String , Any ? >?
199
+ headers : HashMap <String , Any >?
200
200
): Bitmap ? {
201
201
return openBitmapInputStream(uri, headers)?.use {
202
202
// Efficiently crops image without loading full resolution into memory
@@ -258,7 +258,7 @@ class ImageEditorModuleImpl(private val reactContext: ReactApplicationContext) {
258
258
rectHeight : Int ,
259
259
outputWidth : Int ,
260
260
outputHeight : Int ,
261
- headers : HashMap <String , Any ? >?
261
+ headers : HashMap <String , Any >?
262
262
): Bitmap ? {
263
263
Assertions .assertNotNull(outOptions)
264
264
@@ -337,7 +337,7 @@ class ImageEditorModuleImpl(private val reactContext: ReactApplicationContext) {
337
337
}
338
338
}
339
339
340
- private fun openBitmapInputStream (uri : String , headers : HashMap <String , Any ? >? ): InputStream ? {
340
+ private fun openBitmapInputStream (uri : String , headers : HashMap <String , Any >? ): InputStream ? {
341
341
return if (uri.startsWith(" data:" )) {
342
342
val src = uri.substring(uri.indexOf(" ," ) + 1 )
343
343
ByteArrayInputStream (Base64 .decode(src, Base64 .DEFAULT ))
You can’t perform that action at this time.
0 commit comments