From 6fc593c4e3d26b3161b6d0e8e96e25bcf2754380 Mon Sep 17 00:00:00 2001 From: liujing Date: Sun, 26 Sep 2021 20:25:57 +0800 Subject: [PATCH] no message --- .../eagle/core/function/check/view/CheckActivity.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckActivity.java b/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckActivity.java index 0470f2ecc5..05cbb437af 100644 --- a/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckActivity.java +++ b/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckActivity.java @@ -75,6 +75,7 @@ public class CheckActivity extends AppCompatActivity { private ProgressBar mProgressBar; private final static long DURATION_TIME = 1000; private static CheckAdapter mCheckAdapter; + private static boolean isFront = false; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { @@ -87,6 +88,7 @@ public class CheckActivity extends AppCompatActivity { * 列表View初始化 */ public void initView() { + isFront = true; setAnimation = new AnimatorSet(); mImageView = findViewById(R.id.btnBack); scanBottomCarImage = findViewById(R.id.scan_car_image); @@ -141,9 +143,10 @@ public class CheckActivity extends AppCompatActivity { } if (((CheckResultData) o).getData().getVehicle().getState() == 1) { - CallerCheckManager.updateMonitoringStatus(MogoReceiver.ACTION_CHECK_VEHICLE_MONITORING, true); - } else { CallerCheckManager.updateMonitoringStatus(MogoReceiver.ACTION_CHECK_VEHICLE_MONITORING, false); + } else { + CallerCheckManager.updateMonitoringStatus(MogoReceiver.ACTION_CHECK_VEHICLE_MONITORING, true); + showDialog(context); } } }); @@ -153,6 +156,7 @@ public class CheckActivity extends AppCompatActivity { public void onError(String message, int code) { super.onError(message, code); Log.d(TAG, "车辆自检失败,请稍后重试"+"=="+message+String.valueOf(code)); + showDialog(context); } }); @@ -279,6 +283,7 @@ public class CheckActivity extends AppCompatActivity { @Override protected void onDestroy() { super.onDestroy(); + isFront = false; } @Override