From 63754798ef792fa57278d1fe74fab130b9995206 Mon Sep 17 00:00:00 2001 From: Sylvia van Os Date: Fri, 26 Mar 2021 19:48:17 +0100 Subject: [PATCH] Fix error toasts not showing --- app/src/main/java/protect/card_locker/Utils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/protect/card_locker/Utils.java b/app/src/main/java/protect/card_locker/Utils.java index e497dab33..e67dd61e6 100644 --- a/app/src/main/java/protect/card_locker/Utils.java +++ b/app/src/main/java/protect/card_locker/Utils.java @@ -84,7 +84,7 @@ public class Utils { } catch (IOException e) { Log.e(TAG, "Error getting the image data"); e.printStackTrace(); - Toast.makeText(context, R.string.errorReadingImage, Toast.LENGTH_LONG); + Toast.makeText(context, R.string.errorReadingImage, Toast.LENGTH_LONG).show(); return new BarcodeValues(null, null); } @@ -103,7 +103,7 @@ public class Utils { format = qrCodeResult.getBarcodeFormat().name(); } catch (NotFoundException e) { Log.i(TAG, "No barcode was found"); - Toast.makeText(context, R.string.noBarcodeFound, Toast.LENGTH_LONG); + Toast.makeText(context, R.string.noBarcodeFound, Toast.LENGTH_LONG).show(); } } }