Fix issue
This commit is contained in:
parent
f0b8599b7c
commit
b181ac8745
1 changed files with 6 additions and 4 deletions
|
@ -396,12 +396,13 @@ 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_select_gpx_file) {
|
|
||||||
getMyApplication().getSelectedGpxHelper().selectGpxFile(info.gpx, true, true);
|
|
||||||
listAdapter.notifyDataSetChanged();
|
|
||||||
} else if (resId == R.string.local_index_unselect_gpx_file) {
|
} else if (resId == R.string.local_index_unselect_gpx_file) {
|
||||||
getMyApplication().getSelectedGpxHelper().selectGpxFile(info.gpx, false, true);
|
getMyApplication().getSelectedGpxHelper().selectGpxFile(info.gpx, resId == R.string.local_index_select_gpx_file, true);
|
||||||
listAdapter.notifyDataSetChanged();
|
listAdapter.notifyDataSetChanged();
|
||||||
|
Runnable r = selectedGpxHelper.getUiListener();
|
||||||
|
if(r != null) {
|
||||||
|
r.run();
|
||||||
|
}
|
||||||
} else if (resId == R.string.local_index_mi_delete) {
|
} else if (resId == R.string.local_index_mi_delete) {
|
||||||
Builder confirm = new AlertDialog.Builder(getActivity());
|
Builder confirm = new AlertDialog.Builder(getActivity());
|
||||||
confirm.setPositiveButton(R.string.default_buttons_yes, new DialogInterface.OnClickListener() {
|
confirm.setPositiveButton(R.string.default_buttons_yes, new DialogInterface.OnClickListener() {
|
||||||
|
@ -1098,6 +1099,7 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
|
||||||
htmlDescription = null;
|
htmlDescription = null;
|
||||||
getHtmlDescription();
|
getHtmlDescription();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getFileName() {
|
public String getFileName() {
|
||||||
if(fileName != null) {
|
if(fileName != null) {
|
||||||
return fileName;
|
return fileName;
|
||||||
|
|
Loading…
Reference in a new issue