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 <2k1dmg@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
53f8c8dbc4
commit
8669ae78e1
@ -63,8 +63,8 @@ class AppListDialogFragment : DialogFragment() {
|
|||||||
withContext(Dispatchers.Main.immediate) {
|
withContext(Dispatchers.Main.immediate) {
|
||||||
appData.clear()
|
appData.clear()
|
||||||
appData.addAll(applicationData)
|
appData.addAll(applicationData)
|
||||||
|
setButtonText()
|
||||||
}
|
}
|
||||||
setButtonText()
|
|
||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
withContext(Dispatchers.Main.immediate) {
|
withContext(Dispatchers.Main.immediate) {
|
||||||
val error = ErrorMessages[e]
|
val error = ErrorMessages[e]
|
||||||
|
Loading…
Reference in New Issue
Block a user