mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Remove some debug log
This commit is contained in:
parent
6964516e56
commit
e0af464a87
1 changed files with 6 additions and 10 deletions
|
@ -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()));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue