|
|
@@ -120,12 +120,14 @@ class JobProgressPresenter : BasePresenter<IJobProgressView>() {
|
|
|
&& BusinessManager.mDeviceTakeList.none { it.deviceType == DEVICE_TYPE_KEY && it.ticketId == ticketId }
|
|
|
BusinessManager.checkEquipCount(realCount, isNeedKey) { keyPair, lockMap ->
|
|
|
if (keyPair == null) {
|
|
|
- val dialog = TipDialog(mContext!!)
|
|
|
- dialog.setTip(mContext!!.getString(R.string.no_key_available_dialog_tip))
|
|
|
- dialog.setConfirmListener {
|
|
|
- handleGiveKey(ticketDetail, null, lockMap)
|
|
|
+ Executor.runOnMain {
|
|
|
+ val dialog = TipDialog(mContext!!)
|
|
|
+ dialog.setTip(mContext!!.getString(R.string.no_key_available_dialog_tip))
|
|
|
+ dialog.setConfirmListener {
|
|
|
+ handleGiveKey(ticketDetail, null, lockMap)
|
|
|
+ }
|
|
|
+ dialog.show()
|
|
|
}
|
|
|
- dialog.show()
|
|
|
} else {
|
|
|
handleGiveKey(ticketDetail, keyPair, lockMap)
|
|
|
}
|