From 423a733e56bfe97c435b33c9fd13f39692a8d8a9 Mon Sep 17 00:00:00 2001 From: sim Date: Thu, 28 Nov 2024 16:25:31 +0000 Subject: [PATCH] Fix dialog is Nextcloud App isn't found --- .../distributor/nextpush/activities/StartActivity.kt | 4 +++- app/src/main/res/values/themes.xml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/unifiedpush/distributor/nextpush/activities/StartActivity.kt b/app/src/main/java/org/unifiedpush/distributor/nextpush/activities/StartActivity.kt index 2affffa..2d9687b 100644 --- a/app/src/main/java/org/unifiedpush/distributor/nextpush/activities/StartActivity.kt +++ b/app/src/main/java/org/unifiedpush/distributor/nextpush/activities/StartActivity.kt @@ -106,7 +106,9 @@ class StartActivity : ComponentActivity() { ) -> Unit -> it.onActivityResult(activity, i, i1, intent, block) } - it.connect(this) + runOnUiThread { + it.connect(this) + } } } diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 4cb09bc..7fd64fc 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -1,3 +1,3 @@ -