钱包数据显示,运单详情车辆位置问题修复
This commit is contained in:
parent
0021ac1983
commit
007ecbadaa
@ -141,7 +141,6 @@ public class OrderDetailsActivity extends BaseActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (CacheGroup.cacheList.get("getcarlocation") != null) {
|
if (CacheGroup.cacheList.get("getcarlocation") != null) {
|
||||||
|
|
||||||
Type type = new TypeToken<CommonResponseBean<CarLocaBean>>() {
|
Type type = new TypeToken<CommonResponseBean<CarLocaBean>>() {
|
||||||
}.getType();
|
}.getType();
|
||||||
CommonResponseBean<CarLocaBean> getcarlocation = gson.fromJson(CacheGroup.cacheList.get("getcarlocation"), type);
|
CommonResponseBean<CarLocaBean> getcarlocation = gson.fromJson(CacheGroup.cacheList.get("getcarlocation"), type);
|
||||||
@ -162,6 +161,7 @@ public class OrderDetailsActivity extends BaseActivity {
|
|||||||
.position(desLatLng));
|
.position(desLatLng));
|
||||||
aMap.moveCamera(CameraUpdateFactory.newLatLngZoom(desLatLng, 6));
|
aMap.moveCamera(CameraUpdateFactory.newLatLngZoom(desLatLng, 6));
|
||||||
}
|
}
|
||||||
|
CacheGroup.cacheList.remove("getcarlocation");
|
||||||
}
|
}
|
||||||
|
|
||||||
//车辆轨迹
|
//车辆轨迹
|
||||||
@ -269,6 +269,7 @@ public class OrderDetailsActivity extends BaseActivity {
|
|||||||
map.onCreate(savedInstanceState);
|
map.onCreate(savedInstanceState);
|
||||||
if (aMap == null) {
|
if (aMap == null) {
|
||||||
aMap = map.getMap();
|
aMap = map.getMap();
|
||||||
|
aMap.clear();
|
||||||
}
|
}
|
||||||
//initLoaction();
|
//initLoaction();
|
||||||
Log.e("--id--", "" + id);
|
Log.e("--id--", "" + id);
|
||||||
|
@ -216,7 +216,7 @@ public class WalletFragment extends BaseFragment {
|
|||||||
public void initUser(){
|
public void initUser(){
|
||||||
if(userBean.getData()!=null){
|
if(userBean.getData()!=null){
|
||||||
account.setText(StringUtil.isNull(userBean.getData().getAccount(),"0"));
|
account.setText(StringUtil.isNull(userBean.getData().getAccount(),"0"));
|
||||||
waybillNum.setText(StringUtil.isNull(userBean.getData().getWaybillNum()+"","0"));;
|
waybillNum.setText(StringUtil.isNull(userBean.getData().getOrderNum()+"","0"));;
|
||||||
freight.setText(StringUtil.isNull(userBean.getData().getFreight(),"0"));
|
freight.setText(StringUtil.isNull(userBean.getData().getFreight(),"0"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user