mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
make sure we try updaing the viewpager from the UI thread after importing
This commit is contained in:
@@ -305,10 +305,12 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
|||||||
private fun importEventsDialog(path: String) {
|
private fun importEventsDialog(path: String) {
|
||||||
ImportEventsDialog(this, path) {
|
ImportEventsDialog(this, path) {
|
||||||
if (it) {
|
if (it) {
|
||||||
|
runOnUiThread {
|
||||||
updateViewPager()
|
updateViewPager()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun tryExportEvents() {
|
private fun tryExportEvents() {
|
||||||
if (hasReadStoragePermission()) {
|
if (hasReadStoragePermission()) {
|
||||||
|
Reference in New Issue
Block a user