Skip to content

Commit 7d4c1b2

Browse files
committed
fix: clear qr bitmap early on change
1 parent 4dffac9 commit 7d4c1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/to/bitkit/ui/components/QrCodeImage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private fun rememberQrBitmap(content: String, size: Dp): Bitmap? {
139139
val sizePx = with(LocalDensity.current) { size.roundToPx() }
140140

141141
LaunchedEffect(content, size) {
142-
if (bitmap != null) return@LaunchedEffect
142+
bitmap = null // Always reset to show loading indicator
143143

144144
launch(Dispatchers.Default) {
145145
val qrCodeWriter = QRCodeWriter()

0 commit comments

Comments
 (0)