From 32e17591ca41ba7b79514f0cb2e2ef6eb3e5a384 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期六, 10 十月 2020 16:45:11 +0800
Subject: [PATCH] 20201010

---
 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