@Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); this.survey = ((Survey) itemRender.getMissionItem()); typeSpinner.setSelection(commandAdapter.getPosition(MissionItemType.SURVEY)); setupLocalViews(view); updateViews(); }
@Override public void onStop() { super.onStop(); ((DroidPlannerApp) getActivity().getApplication()).drone.events.removeDroneListener(this); }