From 74db60cfe738e6b15cf4f07378684cdef0299e90 Mon Sep 17 00:00:00 2001 From: jacques Date: Mon, 31 Jan 2022 17:50:26 +0100 Subject: [PATCH] Fix some typos --- .../java/net/foucry/pilldroid/DrugListActivity.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index e2672cd..3698ff2 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -303,16 +303,18 @@ public class DrugListActivity extends AppCompatActivity { result -> { if(result.getContents() == null) { Intent originalIntent = result.getOriginalIntent(); - if (originalIntent == null { + if (originalIntent == null) { Log.d(TAG, "Cancelled Scan"); - Toast.makeText(DrugListActivity.this, "Cancelled", Toast.LENGTH_LONG).show(); + Toast.makeText(DrugListActivity.this, "Cancelled", + Toast.LENGTH_LONG).show(); } else if (originalIntent.hasExtra(Intents.Scan.MISSING_CAMERA_PERMISSION)) { Log.d(TAG, "Cancelled scan due missing camera permission"); - Toast.makeText(DrugListaActivity.this, "Cancelled due missing camera persmission", - Toast.LENGTH_LONG.show()); + Toast.makeText(DrugListActivity.this, "Cancelled due missing camera persmission", + Toast.LENGTH_LONG).show(); } else if (originalIntent.hasExtra(Intents.Scan.TIMEOUT)) { Log.d(TAG, "Cancelled due timeout"); - Toast,makeText(DrugListActivity.this, "Cancelled due timeout", Toast.LENGTH_LONG.show()); + Toast.makeText(DrugListActivity.this, "Cancelled due timeout", + Toast.LENGTH_LONG).show(); } } else { Log.d(TAG, "Scanned");