no message
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user