lets fill the main views calendar on every resume, not just at create
This commit is contained in:
parent
82eb63ca69
commit
7165cdb3ff
|
@ -38,13 +38,12 @@ class MainActivity : SimpleActivity(), EventListFragment.DeleteListener {
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
setContentView(R.layout.activity_main)
|
setContentView(R.layout.activity_main)
|
||||||
updateViewPager()
|
|
||||||
|
|
||||||
calendar_fab.setOnClickListener { addNewEvent() }
|
calendar_fab.setOnClickListener { addNewEvent() }
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
|
updateViewPager()
|
||||||
updateWidgets()
|
updateWidgets()
|
||||||
updateTextColors(calendar_coordinator)
|
updateTextColors(calendar_coordinator)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue