From 8ae91a80da78a7f5082961ca2e952586f081cb37 Mon Sep 17 00:00:00 2001 From: Alexandre Jacinto Date: Tue, 14 Nov 2023 18:16:05 +0000 Subject: [PATCH] fix: properly import R class References: https://outsystemsrd.atlassian.net/browse/RMET-2759 --- .../outsystems/plugins/barcode/view/OSBARCScannerActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 1bea316..a35dc88 100644 --- a/src/main/kotlin/com/outsystems/plugins/barcode/view/OSBARCScannerActivity.kt +++ b/src/main/kotlin/com/outsystems/plugins/barcode/view/OSBARCScannerActivity.kt @@ -40,6 +40,7 @@ import androidx.compose.ui.platform.LocalLifecycleOwner import androidx.compose.ui.res.painterResource import androidx.compose.ui.viewinterop.AndroidView import androidx.core.content.ContextCompat +import com.outsystems.plugins.barcode.R import com.outsystems.plugins.barcode.controller.OSBARCBarcodeAnalyzer import com.outsystems.plugins.barcode.controller.OSBARCScanLibraryFactory import com.outsystems.plugins.barcode.controller.helper.OSBARCMLKitHelper @@ -47,7 +48,6 @@ import com.outsystems.plugins.barcode.controller.helper.OSBARCZXingHelper import com.outsystems.plugins.barcode.model.OSBARCError import com.outsystems.plugins.barcode.model.OSBARCScanParameters import com.outsystems.plugins.barcode.view.ui.theme.BarcodeScannerTheme -import com.outsystemsenterprise.enmobile11dev.BarcodeSampleAppNew.R /** * This class is responsible for implementing the UI of the scanning screen using Jetpack Compose. @@ -206,7 +206,7 @@ class OSBARCScannerActivity : ComponentActivity() { var isFlashlightOn by remember { mutableStateOf(false) } val onIcon = painterResource(id = R.drawable.flash_on) val offIcon = painterResource(id = R.drawable.flash_off) - + Button( onClick = { toggleFlashlight(isFlashlightOn)