make sure we trigger reminder actions max once

This commit is contained in:
tibbi 2018-07-08 15:50:12 +02:00
parent cde58b8c8c
commit e1076b8826
1 changed files with 4 additions and 4 deletions

View File

@ -95,15 +95,15 @@ class ReminderActivity : SimpleActivity() {
if (reminder_draggable.x >= maxDragX - 50f) {
if (!didVibrate) {
reminder_draggable.performHapticFeedback()
didVibrate = true
finishActivity()
}
didVibrate = true
finishActivity()
} else if (reminder_draggable.x <= minDragX + 50f) {
if (!didVibrate) {
reminder_draggable.performHapticFeedback()
didVibrate = true
snoozeAlarm()
}
didVibrate = true
snoozeAlarm()
}
}
}