show a toast if the user doesnt finish swiping at the reminder screen

This commit is contained in:
tibbi 2018-07-08 21:53:49 +02:00
parent 7a8acdea79
commit 75510eb7c5

View File

@ -85,6 +85,7 @@ class ReminderActivity : SimpleActivity() {
MotionEvent.ACTION_UP, MotionEvent.ACTION_CANCEL -> {
dragDownX = 0f
if (!didVibrate) {
toast(R.string.swipe_right_to_dismiss)
reminder_draggable.animate().x(initialDraggableX).withEndAction {
reminder_draggable_background.animate().alpha(0.2f)
}