Updated to fix of 119 bug in Jira

This commit is contained in:
unknown 2014-07-02 13:20:26 +03:00
parent 18e88f9e1f
commit fc508f4ce5

View file

@ -115,6 +115,7 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
});
return vs;
}
@Override
public void onResume() {
super.onResume();
@ -254,7 +255,6 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
}
@Override
public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
return false;
@ -437,13 +437,22 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
}
}
};
if(info.gpx != null && info.file != null){
if (info.gpx != null) {
if (info.file == null){
GpxSelectionHelper.SelectedGpxFile selectedGpxFile = selectedGpxHelper.getSelectedCurrentRecordingTrack();
if (selectedGpxFile != null && selectedGpxFile.getGpxFile() == info.gpx){
adapter.item(R.string.local_index_unselect_gpx_file).listen(listener).reg();
} else {
adapter.item(R.string.local_index_select_gpx_file).listen(listener).reg();
}
} else {
if (getMyApplication().getSelectedGpxHelper().getSelectedFileByPath(info.file.getAbsolutePath()) == null) {
adapter.item(R.string.local_index_select_gpx_file).listen(listener).reg();
} else {
adapter.item(R.string.local_index_unselect_gpx_file).listen(listener).reg();
}
}
}
adapter.item(R.string.show_gpx_route).listen(listener).reg();
if (info.file != null) {
adapter.item(R.string.local_index_mi_rename).listen(listener).reg();
@ -571,8 +580,6 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
}
protected class GpxIndexesAdapter extends OsmandBaseExpandableListAdapter implements Filterable {
Map<String, List<GpxInfo>> data = new LinkedHashMap<String, List<GpxInfo>>();
@ -1075,7 +1082,6 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
}
public void setGpx(GPXFile gpx) {
this.gpx = gpx;
}