refresh caldav calendars even if the app is open via some intent

This commit is contained in:
tibbi 2018-08-09 15:09:21 +02:00
parent 01a609f68b
commit 34d05eb6f6
2 changed files with 9 additions and 9 deletions

View File

@ -84,14 +84,6 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
}
if (!checkViewIntents()) {
return
}
if (!checkOpenIntents()) {
updateViewPager()
}
if (!hasPermission(PERMISSION_WRITE_CALENDAR) || !hasPermission(PERMISSION_READ_CALENDAR)) {
config.caldavSync = false
}
@ -99,6 +91,14 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
if (config.caldavSync) {
refreshCalDAVCalendars(false)
}
if (!checkViewIntents()) {
return
}
if (!checkOpenIntents()) {
updateViewPager()
}
}
override fun onResume() {

View File

@ -9,7 +9,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.android.tools.build:gradle:3.1.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong