1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +01:00

Bip wip: fix position -> item mapping

This commit is contained in:
cpfeiffer 2017-11-03 22:04:01 +01:00
parent d9de8e0cab
commit 9e79eee707

View File

@ -26,7 +26,7 @@ public class ActivitySummariesActivity extends AbstractListActivity<BaseActivity
getItemListView().setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Object item = getItemAdapter().getItem(position);
Object item = parent.getItemAtPosition(position);
if (item != null) {
ActivitySummary summary = (ActivitySummary) item;
String gpxTrack = summary.getGpxTrack();