From 76639d0d829affc082212da979daaca108cfb5af Mon Sep 17 00:00:00 2001 From: jacques Date: Wed, 29 Jun 2022 04:53:15 +0200 Subject: [PATCH] Make clean after analyze --- .../main/java/net/foucry/pilldroid/CustomScannerActivity.java | 3 --- app/src/main/java/net/foucry/pilldroid/WelcomeActivity.java | 1 - .../net/foucry/pilldroid/databases/PrescriptionDatabase.java | 3 --- app/src/main/java/net/foucry/pilldroid/models/Medicine.java | 2 +- .../main/java/net/foucry/pilldroid/models/Prescription.java | 2 +- 5 files changed, 2 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/CustomScannerActivity.java b/app/src/main/java/net/foucry/pilldroid/CustomScannerActivity.java index 3186aad..14d90a8 100644 --- a/app/src/main/java/net/foucry/pilldroid/CustomScannerActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/CustomScannerActivity.java @@ -3,7 +3,6 @@ package net.foucry.pilldroid; import android.app.Activity; import android.content.Intent; import android.content.pm.PackageManager; -import android.graphics.Color; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; @@ -18,8 +17,6 @@ import com.journeyapps.barcodescanner.CaptureManager; import com.journeyapps.barcodescanner.DecoratedBarcodeView; import com.journeyapps.barcodescanner.ViewfinderView; -import java.util.Random; - /** * Custom Scanner Activity extending from Activity to display a custom layout form scanner view. */ diff --git a/app/src/main/java/net/foucry/pilldroid/WelcomeActivity.java b/app/src/main/java/net/foucry/pilldroid/WelcomeActivity.java index 1816f83..43791a2 100644 --- a/app/src/main/java/net/foucry/pilldroid/WelcomeActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/WelcomeActivity.java @@ -170,7 +170,6 @@ public class WelcomeActivity extends AppCompatActivity { window.setStatusBarColor(Color.TRANSPARENT); } - @SuppressWarnings("deprecation") private void setFullScreen(){ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { getWindow().setDecorFitsSystemWindows(false); diff --git a/app/src/main/java/net/foucry/pilldroid/databases/PrescriptionDatabase.java b/app/src/main/java/net/foucry/pilldroid/databases/PrescriptionDatabase.java index 2ee418c..e0a4e46 100644 --- a/app/src/main/java/net/foucry/pilldroid/databases/PrescriptionDatabase.java +++ b/app/src/main/java/net/foucry/pilldroid/databases/PrescriptionDatabase.java @@ -12,9 +12,6 @@ import androidx.room.migration.AutoMigrationSpec; import net.foucry.pilldroid.dao.PrescriptionsDAO; import net.foucry.pilldroid.models.Prescription; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; - @Database( version = 2, entities = {Prescription.class}, diff --git a/app/src/main/java/net/foucry/pilldroid/models/Medicine.java b/app/src/main/java/net/foucry/pilldroid/models/Medicine.java index 1fd10be..7f7240e 100644 --- a/app/src/main/java/net/foucry/pilldroid/models/Medicine.java +++ b/app/src/main/java/net/foucry/pilldroid/models/Medicine.java @@ -7,7 +7,7 @@ import androidx.room.PrimaryKey; @Entity(tableName = "drugs") public class Medicine { @PrimaryKey - @NonNull private Integer _id; + private Integer _id; private String cis; private String cip13; private String cip7; diff --git a/app/src/main/java/net/foucry/pilldroid/models/Prescription.java b/app/src/main/java/net/foucry/pilldroid/models/Prescription.java index 709bad1..11c9170 100644 --- a/app/src/main/java/net/foucry/pilldroid/models/Prescription.java +++ b/app/src/main/java/net/foucry/pilldroid/models/Prescription.java @@ -13,7 +13,7 @@ import java.util.Date; @Entity(tableName = "prescriptions") public class Prescription implements Serializable { @PrimaryKey - @NonNull private String cis; + private String cis; private String cip13; private String name; private String administration_mode;