|
|
@@ -215,7 +215,11 @@ class JobProgressFragment(val goBack: () -> Unit) :
|
|
|
val jobStatus = mUserList.find { itUser -> itUser.userId == it.userId }?.jobStatus
|
|
|
if (jobStatus == null || jobStatus >= 5) {
|
|
|
val errorStr = if (jobStatus == null) {
|
|
|
- getString(R.string.user_not_found)
|
|
|
+ if (mStep == 4) {
|
|
|
+ getString(R.string.current_user_does_not_have_the_authority_to_colock)
|
|
|
+ } else {
|
|
|
+ getString(R.string.current_user_does_not_have_the_authority_to_unlock_colock)
|
|
|
+ }
|
|
|
} else {
|
|
|
getString(R.string.user_already_unlock)
|
|
|
}
|
|
|
@@ -313,7 +317,13 @@ class JobProgressFragment(val goBack: () -> Unit) :
|
|
|
}
|
|
|
|
|
|
7 -> {
|
|
|
- if (presenter?.showGoToUnlock(requireContext(), mTicketDetail,mPointList, mUserList) == true) {
|
|
|
+ if (presenter?.showGoToUnlock(
|
|
|
+ requireContext(),
|
|
|
+ mTicketDetail,
|
|
|
+ mPointList,
|
|
|
+ mUserList
|
|
|
+ ) == true
|
|
|
+ ) {
|
|
|
mBinding?.cbAction?.visibility = View.VISIBLE
|
|
|
mBinding?.cbAction?.setIcon(R.mipmap.ticket_unlocked)
|
|
|
mBinding?.cbAction?.setText(getString(R.string.go_unlocking))
|