From 86543c8fb950dc5b4306a932534e1f5269e450d0 Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Fri, 28 Aug 2026 15:56:24 +0200 Subject: [PATCH] WearOS: Hide barcode as a hack for Google approval --- .../main/java/me/hackerchick/catima/wear/ui/CardViewScreen.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wear/src/main/java/me/hackerchick/catima/wear/ui/CardViewScreen.kt b/wear/src/main/java/me/hackerchick/catima/wear/ui/CardViewScreen.kt index c6dca323d..f284a2257 100644 --- a/wear/src/main/java/me/hackerchick/catima/wear/ui/CardViewScreen.kt +++ b/wear/src/main/java/me/hackerchick/catima/wear/ui/CardViewScreen.kt @@ -21,6 +21,7 @@ import androidx.compose.runtime.DisposableEffect import androidx.compose.runtime.remember import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.alpha import androidx.compose.ui.graphics.Color as ComposeColor import androidx.compose.ui.graphics.asImageBitmap import androidx.compose.ui.res.stringResource @@ -138,6 +139,9 @@ private fun CardDetail(card: WearCard) { textAlign = TextAlign.Center, maxLines = 2, color = ComposeColor.Black, + // Hide the barcode value until we can be completely certain the element won't partially fall out of the UI + // This is a workaround for a requirement for Google Play: https://github.com/CatimaLoyalty/Android/issues/3284 + modifier = Modifier.alpha(0f) ) } }