mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
# prevent multiple reselection of same race
This commit is contained in:
1 parent
17ceb0a281
commit
715bd4205c
1 file changed
+5
-1
+5
-1
@@ -200,7 +200,11 @@ public class RacingActivity extends TwoPaneActivity implements RaceInfoListener,
|
||||
}
|
||||
|
||||
public void onRaceItemClicked(ManagedRace managedRace) {
|
||||
this.infoFragment = new RaceInfoFragment();
|
||||
if (infoFragment != null && infoFragment.getRace().equals(managedRace)) {
|
||||
return;
|
||||
}
|
||||
|
||||
infoFragment = new RaceInfoFragment();
|
||||
infoFragment.setArguments(RaceFragment.createArguments(managedRace));
|
||||
|
||||
FragmentTransaction transaction = getFragmentManager().beginTransaction();
|
||||
|
||||
Reference in new issue
Block a user