fix: NFC 打卡成功后恢复按钮 isEnabled=true
NFC 扫描前 btn.isEnabled=false,成功后刷新详情时按钮变为"完成任务" 但 isEnabled 仍为 false 导致点击无响应。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -451,6 +451,8 @@ class TaskListFragment : BaseFragment<FragmentTaskListBinding>() {
|
|||||||
btn.setBackgroundResource(R.drawable.bg_foot_btn_grey)
|
btn.setBackgroundResource(R.drawable.bg_foot_btn_grey)
|
||||||
|
|
||||||
nfcTaskManager.startTaskPunch(taskId) { success, message ->
|
nfcTaskManager.startTaskPunch(taskId) { success, message ->
|
||||||
|
// 恢复按钮可点击状态
|
||||||
|
btn.isEnabled = true
|
||||||
if (success) {
|
if (success) {
|
||||||
tipDialog.show(
|
tipDialog.show(
|
||||||
status = QuTipDialog.Status.SUCCESS,
|
status = QuTipDialog.Status.SUCCESS,
|
||||||
|
|||||||
Reference in New Issue
Block a user