clear the hours before adding them to avoid duplication

This commit is contained in:
tibbi 2017-01-15 13:44:35 +01:00
parent 6221129678
commit 8d2560450a
1 changed files with 1 additions and 0 deletions

View File

@ -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()