adding a couple minor updates

This commit is contained in:
Tibor Kaputa 2018-10-23 18:40:33 +02:00 committed by GitHub
parent 44da1202cc
commit 25f62abc1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -90,7 +90,10 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
if (config.caldavSync) {
refreshCalDAVCalendars(false)
swipe_refresh_layout.setOnRefreshListener { refreshCalDAVCalendars(false) }
}
swipe_refresh_layout.setOnRefreshListener {
refreshCalDAVCalendars(false)
}
if (!checkViewIntents()) {
@ -130,10 +133,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
search_placeholder_2.setTextColor(config.textColor)
calendar_fab.setColors(config.textColor, getAdjustedPrimaryColor(), config.backgroundColor)
search_holder.background = ColorDrawable(config.backgroundColor)
swipe_refresh_layout.run {
isEnabled = config.caldavSync
}
swipe_refresh_layout.isEnabled = config.caldavSync
}
override fun onPause() {