ui: set button text after loading app list in AppListDialogFragment
Otherwise, for lots of apps, the dialog shows before they're enumerated, and the button text never gets set. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
62986b5cad
commit
4d00c334b1
@ -60,6 +60,7 @@ class AppListDialogFragment : DialogFragment() {
|
|||||||
appData.clear()
|
appData.clear()
|
||||||
appData.addAll(applicationData)
|
appData.addAll(applicationData)
|
||||||
}
|
}
|
||||||
|
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