Remove some debug log

This commit is contained in:
jacques 2021-05-13 17:29:05 +02:00
parent 6964516e56
commit e0af464a87

View file

@ -118,17 +118,17 @@ public class AlarmReceiver extends BroadcastReceiver {
Date today; Date today;
Date tomorrow; Date tomorrow;
if (BuildConfig.DEBUG) { /*if (BuildConfig.DEBUG) {
calendar.add(Calendar.HOUR_OF_DAY, 12); calendar.add(Calendar.HOUR_OF_DAY, 12);
today = calendar.getTime(); today = calendar.getTime();
calendar.add(Calendar.DAY_OF_YEAR, 1); calendar.add(Calendar.DAY_OF_YEAR, 1);
tomorrow = calendar.getTime(); tomorrow = calendar.getTime();
} else { } else {*/
calendar.set(Calendar.HOUR_OF_DAY, 12); calendar.set(Calendar.HOUR_OF_DAY, 12);
today = calendar.getTime(); today = calendar.getTime();
calendar.add(Calendar.DAY_OF_YEAR, 1); calendar.add(Calendar.DAY_OF_YEAR, 1);
tomorrow = calendar.getTime(); tomorrow = calendar.getTime();
} // }
LocalTime todayNow = LocalTime.now(); LocalTime todayNow = LocalTime.now();
@ -159,13 +159,9 @@ public class AlarmReceiver extends BroadcastReceiver {
Log.d(TAG, "Alarm already active"); Log.d(TAG, "Alarm already active");
} }
if(BuildConfig.DEBUG) {
alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP,(calendar.getTimeInMillis()),
AlarmManager.INTERVAL_FIFTEEN_MINUTES, alarmIntent); AlarmManager.INTERVAL_DAY, alarmIntent);
} else {
alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP,(calendar.getTimeInMillis()),
AlarmManager.INTERVAL_DAY, alarmIntent);
}
Log.d(TAG, "Alarm scheduled for " + UtilDate.convertDate(calendar.getTimeInMillis())); Log.d(TAG, "Alarm scheduled for " + UtilDate.convertDate(calendar.getTimeInMillis()));