change the EventListFragment holders ID after creating

This commit is contained in:
tibbi 2018-02-18 17:27:46 +01:00
parent f00eb5a219
commit 845489a8f3
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package com.simplemobiletools.calendar.fragments package com.simplemobiletools.calendar.fragments
import android.content.Intent import android.content.Intent
import android.graphics.drawable.ColorDrawable
import android.os.Bundle import android.os.Bundle
import android.view.LayoutInflater import android.view.LayoutInflater
import android.view.View import android.view.View
@ -34,6 +35,8 @@ class EventListFragment : MyFragmentHolder(), RefreshRecyclerViewListener {
mView = inflater.inflate(R.layout.fragment_event_list, container, false) 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)) 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.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 use24HourFormat = context!!.config.use24hourFormat
updateActionBarTitle() updateActionBarTitle()
return mView return mView

View File

@ -7,7 +7,6 @@
android:fillViewport="true"> android:fillViewport="true">
<RelativeLayout <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/week_view_holder" android:id="@+id/week_view_holder"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"