diff --git a/ui/src/main/java/com/wireguard/android/fragment/AppListDialogFragment.kt b/ui/src/main/java/com/wireguard/android/fragment/AppListDialogFragment.kt index 42cea1bc..531cf90d 100644 --- a/ui/src/main/java/com/wireguard/android/fragment/AppListDialogFragment.kt +++ b/ui/src/main/java/com/wireguard/android/fragment/AppListDialogFragment.kt @@ -63,8 +63,8 @@ class AppListDialogFragment : DialogFragment() { withContext(Dispatchers.Main.immediate) { appData.clear() appData.addAll(applicationData) + setButtonText() } - setButtonText() } catch (e: Throwable) { withContext(Dispatchers.Main.immediate) { val error = ErrorMessages[e]