Skip to content

Commit 3062ba4

Browse files
committed
adjust order of product flag check
1 parent 83fc3c7 commit 3062ba4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/main/java/io/snabble/sdk/ui/scanner/ProductResolver.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ class ProductResolver private constructor(private val context: Context, private
194194
}
195195

196196
when {
197-
resolveBundles && product.bundleProducts.isNotEmpty() && !scannedCode.hasEmbeddedData() -> {
198-
showBundleDialog(product, scannedCode)
199-
}
200197
product.saleStop -> {
201198
onSaleStopListener?.onSaleStop()
202199
progressDialog.dismiss()
@@ -225,6 +222,9 @@ class ProductResolver private constructor(private val context: Context, private
225222
onProductFoundListener != null -> {
226223
onProductFoundListener?.onProductFound(product, scannedCode)
227224
}
225+
resolveBundles && product.bundleProducts.isNotEmpty() && !scannedCode.hasEmbeddedData() -> {
226+
showBundleDialog(product, scannedCode)
227+
}
228228
else -> {
229229
showProduct(product, scannedCode)
230230
val event = if (wasOnlineProduct) {

0 commit comments

Comments
 (0)