implement Switching to a different day via top label
This commit is contained in:
parent
212914e0b4
commit
92048e5342
|
@ -69,14 +69,6 @@ class DayActivity : SimpleActivity(), NavigationListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun switchToDay(dayCode: String) {
|
|
||||||
val intent = Intent(applicationContext, DayActivity::class.java)
|
|
||||||
intent.putExtra(Constants.DAY_CODE, dayCode)
|
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
|
|
||||||
startActivity(intent)
|
|
||||||
overridePendingTransition(0, 0)
|
|
||||||
}
|
|
||||||
|
|
||||||
/*private fun updateEvents(events: MutableList<Event>) {
|
/*private fun updateEvents(events: MutableList<Event>) {
|
||||||
mEvents = ArrayList(events)
|
mEvents = ArrayList(events)
|
||||||
val eventsToShow = getEventsToShow(events)
|
val eventsToShow = getEventsToShow(events)
|
||||||
|
@ -168,6 +160,6 @@ class DayActivity : SimpleActivity(), NavigationListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun goToDateTime(dateTime: DateTime) {
|
override fun goToDateTime(dateTime: DateTime) {
|
||||||
|
fillViewPager(Formatter.getDayCodeFromDateTime(dateTime))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue