diff --git a/android/src/main/java/com/tscprinter/TscCommonModule.kt b/android/src/main/java/com/tscprinter/TscCommonModule.kt index 4e1c1a7..cbdafad 100644 --- a/android/src/main/java/com/tscprinter/TscCommonModule.kt +++ b/android/src/main/java/com/tscprinter/TscCommonModule.kt @@ -28,7 +28,7 @@ class TscCommonModule(reactContext: ReactApplicationContext) : try { val url = URL(uri) val bitmap = BitmapFactory.decodeStream(url.openStream()) - val resizedBitmap = if (width == 0 || height == 0) { + val resizedBitmap = if (width == 0.0 || height == 0.0) { bitmap } else { Bitmap.createScaledBitmap(bitmap, width.toInt(), height.toInt(), true)