mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
implement the actual Go to today button functionality
This commit is contained in:
@@ -139,7 +139,13 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
||||
}
|
||||
|
||||
private fun goToToday() {
|
||||
|
||||
if (config.storedView == WEEKLY_VIEW) {
|
||||
week_view_view_pager.currentItem = mDefaultWeeklyPage
|
||||
} else if (config.storedView == MONTHLY_VIEW) {
|
||||
main_view_pager.currentItem = mDefaultMonthlyPage
|
||||
} else if (config.storedView == YEARLY_VIEW) {
|
||||
main_view_pager.currentItem = mDefaultYearlyPage
|
||||
}
|
||||
}
|
||||
|
||||
private fun shouldGoToTodayBeVisible(): Boolean {
|
||||
|
Reference in New Issue
Block a user