refresh caldav calendars even if the app is open via some intent
This commit is contained in:
parent
01a609f68b
commit
34d05eb6f6
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue