Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
Closes #1731
  • Loading branch information
Milan-Cerovsky committed Feb 4, 2025
1 parent d7509ac commit 0cbc46d
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ fun ZashiQr(
qrSize = qrSize,
enableBitmapReload = !isFullscreenDialogVisible,
centerImageResId = state.centerImageResId,
tag = "kktina 1"
)

if (isFullscreenDialogVisible) {
Expand Down Expand Up @@ -106,12 +105,10 @@ private fun ZashiQrInternal(
contentPadding: PaddingValues,
enableBitmapReload: Boolean,
centerImageResId: Int?,
tag: String,
modifier: Modifier = Modifier,
) {
val qrSizePx = with(LocalDensity.current) { qrSize.roundToPx() }
var bitmap: ImageBitmap? by remember {
Log.d(tag, "loaded")
mutableStateOf(getQrCode(state.qrData, qrSizePx, colors))
}

Expand All @@ -120,7 +117,6 @@ private fun ZashiQrInternal(
LaunchedEffect(state.qrData, qrSizePx, colors) {
if (enableBitmapReload && reload) {
bitmap = getQrCode(state.qrData, qrSizePx, colors)
Log.d(tag, "launchedeffect")
}

reload = true
Expand Down Expand Up @@ -193,7 +189,6 @@ private fun FullscreenDialogContent(
qrSize = LocalConfiguration.current.screenWidthDp.dp - 44.dp,
enableBitmapReload = true,
centerImageResId = state.fullscreenCenterImageResId,
tag = "kktina 2"
)
}
}
Expand Down

0 comments on commit 0cbc46d

Please sign in to comment.