| | |
| | | import cn.flightfeather.thirdapp.R; |
| | | import cn.flightfeather.thirdapp.adapter.RecyclerItemClickListener; |
| | | import cn.flightfeather.thirdapp.adapter.ScenseListAdapter; |
| | | import cn.flightfeather.thirdapp.bean.City; |
| | | import cn.flightfeather.thirdapp.bean.District; |
| | | import cn.flightfeather.thirdapp.bean.Domainitem; |
| | | import cn.flightfeather.thirdapp.bean.Province; |
| | | import cn.flightfeather.thirdapp.bean.Scense; |
| | | import cn.flightfeather.thirdapp.bean.Subtask; |
| | | import cn.flightfeather.thirdapp.bean.Town; |
| | | import cn.flightfeather.thirdapp.module.MainActivity; |
| | | import cn.flightfeather.thirdapp.bean.entity.City; |
| | | import cn.flightfeather.thirdapp.bean.entity.District; |
| | | import cn.flightfeather.thirdapp.bean.entity.Domainitem; |
| | | import cn.flightfeather.thirdapp.bean.entity.Province; |
| | | import cn.flightfeather.thirdapp.bean.entity.Scense; |
| | | import cn.flightfeather.thirdapp.bean.entity.Subtask; |
| | | import cn.flightfeather.thirdapp.bean.entity.Town; |
| | | import cn.flightfeather.thirdapp.task.ObtainBoundaryRunnable; |
| | | import cn.flightfeather.thirdapp.util.Area; |
| | | import cn.flightfeather.thirdapp.util.CommonUtils; |
| | |
| | | |
| | | private void selectScense(Marker marker) { |
| | | mSelectedScense = mShownScenseList.get(curPos); |
| | | if (mLastPos != -1) { |
| | | if (mLastPos != -1 && mLastPos < markerList.size()) { |
| | | markerList.get(mLastPos).setIcon(mLastBitmapDesc); |
| | | } |
| | | mLastBitmapDesc = marker.getIcons().get(0); |
| | |
| | | } |
| | | break; |
| | | case R.id.iBtn_data: |
| | | Intent detailIntent = new Intent(this, TaskDetailActivity.class); |
| | | detailIntent.putExtra(Constant.KEY_INTENT_SUBTASK, mSubTaskList.get(curPos)); |
| | | startActivity(detailIntent); |
| | | // Intent detailIntent = new Intent(this, TaskDetailActivity.class); |
| | | // detailIntent.putExtra(Constant.KEY_INTENT_SUBTASK, mSubTaskList.get(curPos)); |
| | | // startActivity(detailIntent); |
| | | break; |
| | | case R.id.iBtn_inspection: |
| | | Intent inspectionIntent = new Intent(this, MainActivity.class); |
| | | inspectionIntent.putExtra(Constant.KEY_INTENT_SUBTASK, mSubTaskList.get(curPos)); |
| | | setResult(RESULT_OK, inspectionIntent); |
| | | this.finish(); |
| | | // Intent inspectionIntent = new Intent(this, MainActivity.class); |
| | | // inspectionIntent.putExtra(Constant.KEY_INTENT_SUBTASK, mSubTaskList.get(curPos)); |
| | | // setResult(RESULT_OK, inspectionIntent); |
| | | // this.finish(); |
| | | break; |
| | | } |
| | | } |