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:
parent
d9de8e0cab
commit
9e79eee707
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user