Skip to content

Commit 8669ae7

Browse files
committed
ui: set app list button text on main thread
Hopefully will fix, "Only the original thread that creted a view hierarchy can touch its views." Reported-by: Damir <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent 53f8c8d commit 8669ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/main/java/com/wireguard/android/fragment/AppListDialogFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ class AppListDialogFragment : DialogFragment() {
6363
withContext(Dispatchers.Main.immediate) {
6464
appData.clear()
6565
appData.addAll(applicationData)
66+
setButtonText()
6667
}
67-
setButtonText()
6868
} catch (e: Throwable) {
6969
withContext(Dispatchers.Main.immediate) {
7070
val error = ErrorMessages[e]

0 commit comments

Comments
 (0)