From e0af464a872e7d3ecb0b95c4aee6d5d3f056946f Mon Sep 17 00:00:00 2001 From: jacques Date: Thu, 13 May 2021 17:29:05 +0200 Subject: [PATCH] Remove some debug log --- .../java/net/foucry/pilldroid/AlarmReceiver.java | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java b/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java index 677e8aa..a0788e1 100644 --- a/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java +++ b/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java @@ -118,17 +118,17 @@ public class AlarmReceiver extends BroadcastReceiver { Date today; Date tomorrow; - if (BuildConfig.DEBUG) { + /*if (BuildConfig.DEBUG) { calendar.add(Calendar.HOUR_OF_DAY, 12); today = calendar.getTime(); calendar.add(Calendar.DAY_OF_YEAR, 1); tomorrow = calendar.getTime(); - } else { + } else {*/ calendar.set(Calendar.HOUR_OF_DAY, 12); today = calendar.getTime(); calendar.add(Calendar.DAY_OF_YEAR, 1); tomorrow = calendar.getTime(); - } +// } LocalTime todayNow = LocalTime.now(); @@ -159,13 +159,9 @@ public class AlarmReceiver extends BroadcastReceiver { Log.d(TAG, "Alarm already active"); } - if(BuildConfig.DEBUG) { - alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), - AlarmManager.INTERVAL_FIFTEEN_MINUTES, alarmIntent); - } else { - alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP,(calendar.getTimeInMillis()), - AlarmManager.INTERVAL_DAY, alarmIntent); - } + + alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP,(calendar.getTimeInMillis()), + AlarmManager.INTERVAL_DAY, alarmIntent); Log.d(TAG, "Alarm scheduled for " + UtilDate.convertDate(calendar.getTimeInMillis()));