From 845489a8f3ed04b3b5d6b8193eacfddd2f6e978f Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 18 Feb 2018 17:27:46 +0100 Subject: [PATCH] change the EventListFragment holders ID after creating --- .../simplemobiletools/calendar/fragments/EventListFragment.kt | 3 +++ app/src/main/res/layout/fragment_week_holder.xml | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/EventListFragment.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/EventListFragment.kt index c69286dce..f2c52dc31 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/EventListFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/EventListFragment.kt @@ -1,6 +1,7 @@ package com.simplemobiletools.calendar.fragments import android.content.Intent +import android.graphics.drawable.ColorDrawable import android.os.Bundle import android.view.LayoutInflater import android.view.View @@ -34,6 +35,8 @@ class EventListFragment : MyFragmentHolder(), RefreshRecyclerViewListener { mView = inflater.inflate(R.layout.fragment_event_list, container, false) val placeholderText = String.format(getString(R.string.two_string_placeholder), "${getString(R.string.no_upcoming_events)}\n", getString(R.string.add_some_events)) mView.calendar_empty_list_placeholder.text = placeholderText + mView.background = ColorDrawable(context!!.config.backgroundColor) + mView.calendar_events_list_holder?.id = (System.currentTimeMillis() / 1000).toInt() use24HourFormat = context!!.config.use24hourFormat updateActionBarTitle() return mView diff --git a/app/src/main/res/layout/fragment_week_holder.xml b/app/src/main/res/layout/fragment_week_holder.xml index c4bb94854..c608620da 100644 --- a/app/src/main/res/layout/fragment_week_holder.xml +++ b/app/src/main/res/layout/fragment_week_holder.xml @@ -7,7 +7,6 @@ android:fillViewport="true">