… | |
… | |
206 | @Override
|
206 | @Override
|
207 | protected void onListItemClick(ListView l, View v, int position, long id)
|
207 | protected void onListItemClick(ListView l, View v, int position, long id)
|
208 | {
|
208 | {
|
209 | super.onListItemClick(l, v, position, id);
|
209 | super.onListItemClick(l, v, position, id);
|
210 | // Get the item that was clicked
|
210 | // Get the item that was clicked
|
211 | this.selected_id = position;
|
211 |
|
|
|
212 | int t_p = position;
|
|
|
213 | int t_s = Navit.map_points.size();
|
|
|
214 | // compensate "selected_id" for reverse listing order of items!
|
|
|
215 | this.selected_id = t_s - t_p - 1;
|
212 | // close this activity
|
216 | // close this activity
|
213 | executeDone();
|
217 | executeDone();
|
214 | }
|
218 | }
|
215 |
|
219 |
|
216 | private void executeDone()
|
220 | private void executeDone()
|