mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-21 01:21:34 -08:00
Fix UI thread for ProgressDialogFragment
This commit is contained in:
1 parent
d1f88112ce
commit
5705d367ed
1 file changed
+7
-5
@@ -88,11 +88,13 @@ open class ProgressTaskDialogFragment : DialogFragment(), ProgressTaskUpdater {
|
||||
}
|
||||
|
||||
private fun updateView(textView: TextView?, @StringRes resId: Int) {
|
||||
if (resId == UNDEFINED) {
|
||||
textView?.visibility = View.GONE
|
||||
} else {
|
||||
textView?.setText(resId)
|
||||
textView?.visibility = View.VISIBLE
|
||||
activity?.runOnUiThread {
|
||||
if (resId == UNDEFINED) {
|
||||
textView?.visibility = View.GONE
|
||||
} else {
|
||||
textView?.setText(resId)
|
||||
textView?.visibility = View.VISIBLE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user