mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
HistoryCard: Swap short/long press
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user