From 3f24502721f705243115ab2fd6823a4d74f00179 Mon Sep 17 00:00:00 2001 From: skydoves Date: Tue, 5 Nov 2024 19:19:51 +0900 Subject: [PATCH] Add non nullability to the bitmap --- .../skydoves/landscapist/transformation/RenderScriptToolkit.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/landscapist-transformation/src/main/kotlin/com/skydoves/landscapist/transformation/RenderScriptToolkit.kt b/landscapist-transformation/src/main/kotlin/com/skydoves/landscapist/transformation/RenderScriptToolkit.kt index 522ce0c6..c6e8991d 100644 --- a/landscapist-transformation/src/main/kotlin/com/skydoves/landscapist/transformation/RenderScriptToolkit.kt +++ b/landscapist-transformation/src/main/kotlin/com/skydoves/landscapist/transformation/RenderScriptToolkit.kt @@ -435,7 +435,7 @@ internal fun validateBitmap( } internal fun createCompatibleBitmap(inputBitmap: Bitmap) = - Bitmap.createBitmap(inputBitmap.width, inputBitmap.height, inputBitmap.config) + Bitmap.createBitmap(inputBitmap.width, inputBitmap.height, inputBitmap.config!!) internal fun validateHistogramDotCoefficients( coefficients: FloatArray?,