Skip to content

Commit

Permalink
fix: properly import R class
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgerardojacinto committed Nov 14, 2023
1 parent dd4896b commit 8ae91a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ 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
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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8ae91a8

Please sign in to comment.