fix hiding gpx files on maps after deleting from my places p2

This commit is contained in:
Skalii 2021-03-29 21:48:50 +03:00
parent a8f780a46c
commit 48092f0e23

View file

@ -1290,13 +1290,14 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment implement
// local_indexes_cat_gpx now obsolete in new UI screen which shows only GPX data // local_indexes_cat_gpx now obsolete in new UI screen which shows only GPX data
// if (Algorithms.objectEquals(getActivity().getString(R.string.local_indexes_cat_gpx) + " " + // if (Algorithms.objectEquals(getActivity().getString(R.string.local_indexes_cat_gpx) + " " +
// g.subfolder, cat)) { // g.subfolder, cat)) {
if (objectEquals("" + g.subfolder, cat)) { if (objectEquals(g.subfolder, cat)) {
found = i; found = i;
break; break;
} }
} }
if (found != -1) { if (found != -1) {
data.get(category.get(found)).remove(g); data.get(category.get(found)).remove(g);
selected.remove(g);
} }
} }
} }