Fix issue

This commit is contained in:
Victor Shcherb 2014-06-27 02:41:50 +02:00
parent 3d73d3b43e
commit 94c927c26f

View file

@ -396,7 +396,8 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
public void onContextMenuClick(int resId, int pos, boolean isChecked, DialogInterface dialog) { public void onContextMenuClick(int resId, int pos, boolean isChecked, DialogInterface dialog) {
if (resId == R.string.local_index_mi_rename) { if (resId == R.string.local_index_mi_rename) {
renameFile(info); renameFile(info);
} else if (resId == R.string.local_index_unselect_gpx_file) { } else if (resId == R.string.local_index_unselect_gpx_file ||
resId == R.string.local_index_select_gpx_file) {
getMyApplication().getSelectedGpxHelper().selectGpxFile(info.gpx, resId == R.string.local_index_select_gpx_file, true); getMyApplication().getSelectedGpxHelper().selectGpxFile(info.gpx, resId == R.string.local_index_select_gpx_file, true);
listAdapter.notifyDataSetChanged(); listAdapter.notifyDataSetChanged();
Runnable r = selectedGpxHelper.getUiListener(); Runnable r = selectedGpxHelper.getUiListener();