From 908b9b6e13b00d197daa344dc42e0a67b3415743 Mon Sep 17 00:00:00 2001 From: Bryan Herbst Date: Wed, 27 Nov 2024 13:24:48 -0600 Subject: [PATCH] Fix team event navigation sometimes loading the wrong event data (#982) --- .../androidclient/activities/TeamAtEventActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/thebluealliance/androidclient/activities/TeamAtEventActivity.java b/android/src/main/java/com/thebluealliance/androidclient/activities/TeamAtEventActivity.java index cc5cdf726..68cdd5c02 100644 --- a/android/src/main/java/com/thebluealliance/androidclient/activities/TeamAtEventActivity.java +++ b/android/src/main/java/com/thebluealliance/androidclient/activities/TeamAtEventActivity.java @@ -227,7 +227,7 @@ public void onPageScrolled(int position, float positionOffset, int positionOffse public void updateEventsParticipated(List events) { mEventsParticipated = ImmutableList.copyOf(events); - int requestedEventIndex = 0; + int requestedEventIndex = -1; for (int i = 0; i < mEventsParticipated.size(); i++) { if (mEventsParticipated.get(i).getKey().equals(mEventKey)) { requestedEventIndex = i;