mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-19 21:20:43 +01:00
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
|
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!checkViewIntents()) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!checkOpenIntents()) {
|
|
||||||
updateViewPager()
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!hasPermission(PERMISSION_WRITE_CALENDAR) || !hasPermission(PERMISSION_READ_CALENDAR)) {
|
if (!hasPermission(PERMISSION_WRITE_CALENDAR) || !hasPermission(PERMISSION_READ_CALENDAR)) {
|
||||||
config.caldavSync = false
|
config.caldavSync = false
|
||||||
}
|
}
|
||||||
@ -99,6 +91,14 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
if (config.caldavSync) {
|
if (config.caldavSync) {
|
||||||
refreshCalDAVCalendars(false)
|
refreshCalDAVCalendars(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!checkViewIntents()) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!checkOpenIntents()) {
|
||||||
|
updateViewPager()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
|
@ -9,7 +9,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
Loading…
x
Reference in New Issue
Block a user