Skip to content

Commit d0f4b44

Browse files
committed
fix calendar view legend jumping on data set
1 parent b209ec5 commit d0f4b44

File tree

1 file changed

+1
-0
lines changed
  • features/feature_records/src/main/java/com/example/util/simpletimetracker/feature_records/customView

1 file changed

+1
-0
lines changed

features/feature_records/src/main/java/com/example/util/simpletimetracker/feature_records/customView/RecordsCalendarView.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ class RecordsCalendarView @JvmOverloads constructor(
199199

200200
override fun onDraw(canvas: Canvas?) {
201201
if (canvas == null) return
202+
if (data.isEmpty()) return
202203

203204
val w = width.toFloat()
204205
val h = height.toFloat()

0 commit comments

Comments
 (0)