解析错误
This commit is contained in:
@@ -55,7 +55,7 @@ public class NoticeTrafficDialog extends BaseFloatDialog {
|
||||
private TextView connect;//连接
|
||||
private NoticeTrafficAdapter adapter;
|
||||
private ArrayList dataArrayList = new ArrayList();
|
||||
private NoticeTrafficStyleInfo mTrafficStyleInfo;
|
||||
private NoticeTrafficStyleInfo.NoticeTrafficStyleInfoResult mTrafficStyleInfo;
|
||||
|
||||
public NoticeTrafficDialog(@NonNull Context context, NoticeTrafficStylePushData pushData) {
|
||||
super(context);
|
||||
@@ -156,7 +156,11 @@ public class NoticeTrafficDialog extends BaseFloatDialog {
|
||||
private void feedBackTraffic(int i) {
|
||||
CallerNoticeManager.getNoticeProvider().feedBackNoticeTraffic(mPushData.getInfoId(), MoGoAiCloudClientConfig.getInstance().getSn(), i);
|
||||
if (i == 1) {
|
||||
startAutoPilot();
|
||||
try {
|
||||
startAutoPilot();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
dismiss();
|
||||
}
|
||||
@@ -364,15 +368,13 @@ public class NoticeTrafficDialog extends BaseFloatDialog {
|
||||
@Override
|
||||
public void callBackWithResult(NoticeTrafficStyleInfo trafficInfo) {
|
||||
Log.d(TAG, "交通事故详情::" + trafficInfo);
|
||||
trafficInfo.setOperaStatus("已处理");
|
||||
trafficInfo.setTroubleReasonName("逆向");
|
||||
mTrafficStyleInfo = trafficInfo;
|
||||
infoRefresh(trafficInfo);
|
||||
mTrafficStyleInfo = trafficInfo.getResult();
|
||||
infoRefresh(mTrafficStyleInfo);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void infoRefresh(NoticeTrafficStyleInfo info) {
|
||||
private void infoRefresh(NoticeTrafficStyleInfo.NoticeTrafficStyleInfoResult info) {
|
||||
if (dataArrayList.size() > 0) {
|
||||
dataArrayList.clear();
|
||||
}
|
||||
@@ -403,7 +405,7 @@ public class NoticeTrafficDialog extends BaseFloatDialog {
|
||||
|
||||
NoticeValue reason = new NoticeValue();
|
||||
reason.setKey("事故原因:");
|
||||
reason.setValue(info.getTroubleReasonName());
|
||||
reason.setValue(info.getReason());
|
||||
dataArrayList.add(reason);
|
||||
|
||||
NoticeValue status = new NoticeValue();
|
||||
@@ -417,7 +419,7 @@ public class NoticeTrafficDialog extends BaseFloatDialog {
|
||||
dataArrayList.add(location);
|
||||
|
||||
NoticeValue style = new NoticeValue();
|
||||
style.setKey("事故类型:");
|
||||
style.setKey("事故等级:");
|
||||
style.setValue(info.getTroubleTypeName());
|
||||
dataArrayList.add(style);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user