Merge pull request #1314 from kalina559/feature/case_1282_calendar_bug

Fixed edit history calendar bug
pull/1336/head
Alinson S. Xavier 4 years ago committed by GitHub
commit a4db997e06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -87,7 +87,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
if (isLongClick) {

Loading…
Cancel
Save