diff --git a/CHANGELOG.md b/CHANGELOG.md index 690a48f..45fa819 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 The changes documented here do not include those from the original repository. +## [1.1.3] + +### 22-08-2024 +- Fix: Avoid UI bug on background when layout is portrait (https://outsystemsrd.atlassian.net/browse/RMET-3379). + ## [1.1.2] ### 21-05-2024 diff --git a/pom.xml b/pom.xml index d6ccf5a..efbe475 100644 --- a/pom.xml +++ b/pom.xml @@ -7,5 +7,5 @@ 4.0.0 com.github.outsystems osbarcode-android - 1.1.2 + 1.1.3 diff --git a/src/main/kotlin/com/outsystems/plugins/barcode/view/OSBARCScannerActivity.kt b/src/main/kotlin/com/outsystems/plugins/barcode/view/OSBARCScannerActivity.kt index d420a92..99d707d 100644 --- a/src/main/kotlin/com/outsystems/plugins/barcode/view/OSBARCScannerActivity.kt +++ b/src/main/kotlin/com/outsystems/plugins/barcode/view/OSBARCScannerActivity.kt @@ -520,6 +520,13 @@ class OSBARCScannerActivity : ComponentActivity() { verticalArrangement = Arrangement.Center ) { + Box( + modifier = Modifier + .fillMaxWidth() + .weight(1f, fill = true) + .background(ScannerBackgroundBlack) + ) + ScanInstructions( modifier = Modifier .fillMaxWidth(), @@ -764,7 +771,7 @@ class OSBARCScannerActivity : ComponentActivity() { */ @Composable fun ScanInstructions(modifier: Modifier, parameters: OSBARCScanParameters) { - if (!parameters.scanInstructions.isNullOrEmpty()) { + if (!parameters.scanInstructions.isNullOrBlank()) { Box( modifier = Modifier .background(ScannerBackgroundBlack)