修改bug
This commit is contained in:
parent
4f157306ad
commit
c278f9b57a
@ -471,8 +471,6 @@ public class FragmentManagement extends BaseActivity {
|
||||
fragmentTransaction.show(messageFragment);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
}
|
||||
fragmentTransaction.commit();
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ public abstract class BaseFragment extends Fragment implements FragmentBackHandl
|
||||
private void initTimer() {
|
||||
Timer timer = new Timer(true);
|
||||
TimerTask timerTask = new TimerTask() {
|
||||
int countTime = 10;
|
||||
int countTime = 20;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
@ -247,11 +247,11 @@ public class StaySubmitFragment extends BaseFragment implements View.OnClickList
|
||||
public void run() {
|
||||
roadEntities.clear();
|
||||
roadEntities.addAll(roadAll);
|
||||
// for (int i = 0; i < roadAll.size(); i++) {
|
||||
// if (roadAll.get(i).getType()!=6){
|
||||
// roadEntities.add(roadAll.get(i));
|
||||
// }
|
||||
// }
|
||||
// for (int i = 0; i < roadAll.size(); i++) {
|
||||
// if (roadAll.get(i).getType()!=6){
|
||||
// roadEntities.add(roadAll.get(i));
|
||||
// }
|
||||
// }
|
||||
Log.d("TAG", "run: " + roadEntities.toString());
|
||||
staySubmitAdapter.setAllRoad(roadEntities);
|
||||
staySubmitAdapter.notifyDataSetChanged();
|
||||
|
@ -274,7 +274,6 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
|
||||
case 2:
|
||||
ChargingStationFragment chargingStationFragment = ChargingStationFragment.newInstance(bundle);
|
||||
showSlidingFragment(chargingStationFragment);
|
||||
|
||||
break;
|
||||
case 3:
|
||||
PoiVideoFragment poiVideoFragment = PoiVideoFragment.newInstance(bundle);
|
||||
@ -323,6 +322,8 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
|
||||
poiListEntity.setY(latPolygon.get(0).latitude + "");
|
||||
}
|
||||
initMarker(poiListEntity);
|
||||
}else {
|
||||
Toast.makeText(getActivity(), "数据为空", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
|
||||
}
|
||||
@ -576,13 +577,28 @@ public class TreasureFragment extends BaseFragment implements View.OnClickListen
|
||||
latLng = latPolygon.get(0);
|
||||
}*/
|
||||
}
|
||||
BitmapDescriptor descriptor = null;
|
||||
if (poiEntity.getType()==1){
|
||||
descriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_poi_bags);
|
||||
}else if (poiEntity.getType()==2){
|
||||
descriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_charge_bags);
|
||||
}else if (poiEntity.getType()==3){
|
||||
descriptor = BitmapDescriptorFactory.fromResource(R.drawable.poi_video_bag);
|
||||
}else if (poiEntity.getType()==4){
|
||||
descriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_road_bag);
|
||||
}else if (poiEntity.getType()==5){
|
||||
descriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_other_bag);
|
||||
}else if (poiEntity.getType()==6){
|
||||
descriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_poi_bag);
|
||||
}
|
||||
|
||||
if (bigMarker == null) {
|
||||
BitmapDescriptor poiDescriptor = BitmapDescriptorFactory.fromResource(R.drawable.marker_road_bag);
|
||||
bigMarker = tencentMap.addMarker(new MarkerOptions(latLng).icon(poiDescriptor).alpha(0.9f)
|
||||
bigMarker = tencentMap.addMarker(new MarkerOptions(latLng).icon(descriptor).alpha(0.9f)
|
||||
.flat(true)
|
||||
.clockwise(false));
|
||||
} else {
|
||||
bigMarker.setPosition(latLng);
|
||||
bigMarker.setIcon(descriptor);
|
||||
}
|
||||
bigMarker.setVisible(true);
|
||||
bigMarker.setClickable(false);
|
||||
|
@ -2,6 +2,10 @@ package com.navinfo.outdoor.http;
|
||||
|
||||
import android.app.Activity;
|
||||
|
||||
import com.github.lazylibrary.util.DES;
|
||||
import com.github.lazylibrary.util.MD5;
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.JsonObject;
|
||||
import com.lzy.okgo.OkGo;
|
||||
import com.lzy.okgo.model.HttpParams;
|
||||
import com.lzy.okgo.model.Response;
|
||||
|
Loading…
x
Reference in New Issue
Block a user