Ui update

This commit is contained in:
Tommaso Berlose
2020-10-13 11:32:10 +02:00
parent 2bb30aae69
commit 9ecb9b4819
44 changed files with 106 additions and 83 deletions

View File

@ -167,7 +167,7 @@ class ActivityDetectionReceiver : BroadcastReceiver() {
private fun setTimeout(context: Context) {
with(context.getSystemService(Context.ALARM_SERVICE) as AlarmManager) {
cancel(PendingIntent.getBroadcast(context, 5, Intent(context, ActivityDetectionReceiver::class.java), 0))
setExactAndAllowWhileIdle(
setExact(
AlarmManager.RTC,
Calendar.getInstance().timeInMillis + 5 * 60 * 1000,
PendingIntent.getBroadcast(