From 46811d4d71befb5e3e74915b93310be4eb8c14d1 Mon Sep 17 00:00:00 2001 From: jacques Date: Tue, 1 Mar 2022 20:33:34 +0100 Subject: [PATCH] Remove some warning --- app/src/main/java/net/foucry/pilldroid/DrugListActivity.java | 4 +--- .../main/java/net/foucry/pilldroid/PilldroidScanContract.java | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index ff5d49b..f8815e4 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -118,9 +118,7 @@ public class DrugListActivity extends AppCompatActivity { setContentView(R.layout.activity_drug_list); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { - dbHelper = new DBHelper(this); - } + dbHelper = new DBHelper(this); dbDrug = new DBDrugs(this); Toolbar toolbar = findViewById(R.id.toolbar); diff --git a/app/src/main/java/net/foucry/pilldroid/PilldroidScanContract.java b/app/src/main/java/net/foucry/pilldroid/PilldroidScanContract.java index eabb52d..4289e31 100644 --- a/app/src/main/java/net/foucry/pilldroid/PilldroidScanContract.java +++ b/app/src/main/java/net/foucry/pilldroid/PilldroidScanContract.java @@ -25,7 +25,7 @@ public class PilldroidScanContract extends ActivityResultContract