Skip to content

Commit

Permalink
fix(Android): correct implement
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Dec 30, 2024
1 parent 5b4f98e commit 191a47b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/java/com/tscprinter/TscCommonModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 191a47b

Please sign in to comment.