修改布局适配bug(部分)

This commit is contained in:
md
2021-07-29 20:09:05 +08:00
parent d45be0360e
commit 440fd90a5f
14 changed files with 38 additions and 8 deletions

View File

@@ -64,6 +64,7 @@ public class StaySubmitAdapter extends RecyclerView.Adapter<StaySubmitAdapter.Vi
}
}
handler.sendEmptyMessage(0x105);
}
}).start();
}

View File

@@ -957,6 +957,7 @@ public class ChargingStationFragment extends BaseDrawerFragment implements View.
}
private void stationUploadByNetWork(PoiEntity poiEntity, ArrayList<File> chargingStationList) {
showLoadingDialog();
if (poiEntity == null || poiEntity.getBodyId() == 0) {
Toast.makeText(getActivity(), "没有保存本地", Toast.LENGTH_SHORT).show();
Log.e("TAG", "poiUploadByNetWork: " + poiEntity.getBodyId() + chargingStationList);
@@ -979,6 +980,7 @@ public class ChargingStationFragment extends BaseDrawerFragment implements View.
getActivity().runOnUiThread(new Runnable() {
@Override
public void run() {
OkGo
// 请求方式和请求url
.<PoiUploadBean>post(HttpInterface.C_TASK_UP_LOAD_PIC)

View File

@@ -454,6 +454,7 @@ public class OtherFragment extends BaseDrawerFragment implements View.OnClickLis
Log.e("TAG", "poiUploadByNetWork: " + body + otherUploadList);
return;
}
showLoadingDialog();
OkGo
// 请求方式和请求url
.<PoiUploadBean>post(HttpInterface.OTHER_TASK_UPLOAD_PIC)

View File

@@ -725,6 +725,7 @@ public class PoiFragment extends BaseDrawerFragment implements View.OnClickListe
Log.e("TAG", "poiUploadByNetWork: " + body + poiPicList);
return;
}
showLoadingDialog();
OkGo
// 请求方式和请求url
.<OtherUploadPicBean>post(HttpInterface.POI_TASK_UPLOAD_PIC)

View File

@@ -220,7 +220,7 @@ public class PoiVideoFragment extends BaseDrawerFragment implements View.OnClick
ivPoiVideoPicture.setTag(videoFile);
}
}else {
Toast.makeText(getContext(), "请先录像", Toast.LENGTH_SHORT).show();
}
}
//判断是否是已做完任务并保存成功
@@ -236,6 +236,10 @@ public class PoiVideoFragment extends BaseDrawerFragment implements View.OnClick
tvPictures.setEnabled(false);
etDesc.setEnabled(false);
btnRoadSave.setEnabled(false);
rbCar.setEnabled(false);
rbWalking.setEnabled(false);
rbManual.setEnabled(false);
rbBicycle.setEnabled(false);
}
@Override
@@ -441,6 +445,7 @@ public class PoiVideoFragment extends BaseDrawerFragment implements View.OnClick
Toast.makeText(getActivity(), "未压缩完成", Toast.LENGTH_SHORT).show();
return;
}
showLoadingDialog();
OkGo
// 请求方式和请求url
.<OtherUploadPicBean>post(HttpInterface.POI_VIDEO_UPLOAD_PIC)
@@ -520,7 +525,7 @@ public class PoiVideoFragment extends BaseDrawerFragment implements View.OnClick
}).start();
Toast.makeText(getActivity(), "保存成功", Toast.LENGTH_SHORT).show();
} else {
Toast.makeText(getActivity(), "没有获取到具体位置", Toast.LENGTH_SHORT).show();
Toast.makeText(getActivity(), ""+poiVideoBean.getMessage(), Toast.LENGTH_SHORT).show();
}
}

View File

@@ -196,6 +196,7 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
}
}
}
if (showPoiEntity.getTaskStatus() == 3){
disables();
}
@@ -414,6 +415,7 @@ public class RoadFragment extends BaseDrawerFragment implements View.OnClickList
Toast.makeText(getContext(), "未压缩完成", Toast.LENGTH_SHORT).show();
return;
}
showLoadingDialog();
OkGo
// 请求方式和请求url
.<OtherUploadPicBean>post(HttpInterface.ROAD_TASK_UPLOAD_PIC)

View File

@@ -202,6 +202,7 @@ public class StaySubmitFragment extends BaseFragment implements View.OnClickList
@Override
public boolean onClick(BaseDialog baseDialog, View v) {
staySubmitAdapter.setAllCheckedDelete();
staySubmitAdapter.notifyDataSetChanged();
return false;
}
});
@@ -252,6 +253,7 @@ public class StaySubmitFragment extends BaseFragment implements View.OnClickList
}
Log.d("TAG", "run: " + roadEntities.toString());
staySubmitAdapter.setAllRoad(roadEntities);
staySubmitAdapter.notifyDataSetChanged();
}
});
}