fix error in AlarmReciver, bug not fixed yet.

This commit is contained in:
jacques 2022-06-23 13:33:04 +02:00
parent 5f4a04fe85
commit ea3a4ae374

View file

@ -45,8 +45,7 @@ public class AlarmReceiver extends BroadcastReceiver {
if (BuildConfig.DEBUG) { Toast.makeText(context, "New stock calculated", Toast.LENGTH_LONG).show(); }
createNotificationChannel(context);
PrescriptionDatabase prescriptions = null;
assert false;
PrescriptionDatabase prescriptions = PrescriptionDatabase.getInstanceDatabase(context.getApplicationContext());
PrescriptionsDAO prescriptionsDAO = prescriptions.getPrescriptionsDAO();
List<Prescription> prescriptionList = prescriptionsDAO.getAllMedics();
Prescription firstPrescription = null ;