mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Fixed edit history calendar bug
This commit is contained in:
@@ -75,7 +75,7 @@ class HistoryChart(
|
||||
val col = ((x - padding) / squareSize).toInt()
|
||||
val row = ((y - padding) / squareSize).toInt()
|
||||
val offset = col * 7 + (row - 1)
|
||||
if (row == 0 || col == nColumns) return
|
||||
if (x - padding < 0 || row == 0 || row > 7 || col == nColumns) return
|
||||
val clickedDate = topLeftDate.plus(offset)
|
||||
if (clickedDate.isNewerThan(today)) return
|
||||
onDateClickedListener.onDateClicked(clickedDate)
|
||||
|
||||
Reference in New Issue
Block a user