From 8d2560450afd75d520971643e6bc32fab2c010ac Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 15 Jan 2017 13:44:35 +0100 Subject: [PATCH] clear the hours before adding them to avoid duplication --- .../com/simplemobiletools/calendar/activities/MainActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt index 4a2e2a497..8e649f185 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt @@ -166,6 +166,7 @@ class MainActivity : SimpleActivity(), EventListFragment.DeleteListener { calendar_event_list_holder.visibility = View.GONE main_weekly_scrollview.visibility = View.VISIBLE + week_view_hours_holder.removeAllViews() for (i in 1..23) { val view = layoutInflater.inflate(R.layout.weekly_view_hour_textview, null, false) as TextView val value = i.toString()