Commit 7f301640 authored by Ricki Hirner's avatar Ricki Hirner

Account settings: reload in UI thread on Android callback

* version bump to 260
parent 83656ef4
......@@ -18,7 +18,8 @@ android {
defaultConfig {
applicationId "at.bitfire.davdroid"
versionCode 259
versionCode 260
versionName '2.2'
buildConfigField "long", "buildTime", System.currentTimeMillis() + "L"
buildConfigField "boolean", "customCerts", "true"
......
......@@ -105,7 +105,12 @@ class AccountSettingsActivity: AppCompatActivity() {
settings.removeOnChangeListener(this)
}
override fun onStatusChanged(which: Int) = reload()
override fun onStatusChanged(which: Int) {
Handler(Looper.getMainLooper()).post {
reload()
}
}
override fun onSettingsChanged() = reload()
fun reload() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment