HistoryCard: Swap short/long press

This commit is contained in:
Alinson S. Xavier 2021-11-11 06:08:03 -06:00
parent a1aea532b5
commit c331f34fa9
No known key found for this signature in database
GPG Key ID: DCA0DAD4D2F58624

View File

@ -59,7 +59,7 @@ class HistoryCardPresenter(
val screen: Screen,
) : OnDateClickedListener {
override fun onDateShortPress(date: LocalDate) {
override fun onDateLongPress(date: LocalDate) {
val timestamp = Timestamp.fromLocalDate(date)
screen.showFeedback()
if (habit.isNumerical) {
@ -83,7 +83,7 @@ class HistoryCardPresenter(
}
}
override fun onDateLongPress(date: LocalDate) {
override fun onDateShortPress(date: LocalDate) {
val timestamp = Timestamp.fromLocalDate(date)
screen.showFeedback()
if (habit.isNumerical) {