mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Fix UI thread for ProgressDialogFragment
This commit is contained in:
@@ -88,11 +88,13 @@ open class ProgressTaskDialogFragment : DialogFragment(), ProgressTaskUpdater {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun updateView(textView: TextView?, @StringRes resId: Int) {
|
private fun updateView(textView: TextView?, @StringRes resId: Int) {
|
||||||
if (resId == UNDEFINED) {
|
activity?.runOnUiThread {
|
||||||
textView?.visibility = View.GONE
|
if (resId == UNDEFINED) {
|
||||||
} else {
|
textView?.visibility = View.GONE
|
||||||
textView?.setText(resId)
|
} else {
|
||||||
textView?.visibility = View.VISIBLE
|
textView?.setText(resId)
|
||||||
|
textView?.visibility = View.VISIBLE
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user