Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import android.os.Build
import androidx.annotation.Keep
import com.facebook.common.internal.DoNotStrip
import com.margelo.nitro.core.ArrayBuffer
import java.nio.ByteBuffer
import kotlin.io.encoding.Base64
import kotlin.io.encoding.ExperimentalEncodingApi

Expand Down Expand Up @@ -34,7 +33,6 @@ class HybridImageUtils: HybridImageUtilsSpec() {
@OptIn(ExperimentalEncodingApi::class)
override fun thumbhashFromBase64String(thumbhashBase64: String): ArrayBuffer {
val bytes = Base64.decode(thumbhashBase64)
val buffer = ByteBuffer.wrap(bytes)
return ArrayBuffer.wrap(buffer)
return ArrayBuffer.copy(bytes)
}
}