make sure we trigger reminder actions max once
This commit is contained in:
parent
cde58b8c8c
commit
e1076b8826
|
@ -95,18 +95,18 @@ class ReminderActivity : SimpleActivity() {
|
|||
if (reminder_draggable.x >= maxDragX - 50f) {
|
||||
if (!didVibrate) {
|
||||
reminder_draggable.performHapticFeedback()
|
||||
}
|
||||
didVibrate = true
|
||||
finishActivity()
|
||||
}
|
||||
} else if (reminder_draggable.x <= minDragX + 50f) {
|
||||
if (!didVibrate) {
|
||||
reminder_draggable.performHapticFeedback()
|
||||
}
|
||||
didVibrate = true
|
||||
snoozeAlarm()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue