From 43242c8e7915b968bb7a6f3f22bded7704f0e40f Mon Sep 17 00:00:00 2001
From: feiyu02 <feiyu02@163.com>
Date: 星期二, 01 九月 2020 09:55:06 +0800
Subject: [PATCH] 1. 修复问题修改界面问题子项无法显示为原纪录的问题

---
 app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuRecheckActivity.kt |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuRecheckActivity.kt b/app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuRecheckActivity.kt
index a3bac18..61c9f9a 100644
--- a/app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuRecheckActivity.kt
+++ b/app/src/main/java/cn/flightfeather/thirdapp/module/inspection/MenuRecheckActivity.kt
@@ -28,8 +28,6 @@
     var totalProblemCount = 0
 
     override fun onCreate(savedInstanceState: Bundle?) {
-        EventBus.getDefault().register(this)
-
         super.onCreate(savedInstanceState)
 
         viewModel.subTaskPack.observe(this, Observer {
@@ -71,7 +69,7 @@
 
     @Subscribe(threadMode = ThreadMode.BACKGROUND)
     fun onUpdateRecheck(problemEvent: ProblemEvent) {
-        if (problemEvent.type == InspectionFragment.PROBLEM_RECHECK) {
+        if (problemEvent.type == InspectionDetailActivity.PROBLEM_RECHECK) {
             inspection?.apply {
                 recheckcount = recheckcount?.plus(1) ?: 1
 

--
Gitblit v1.9.3