mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-13 22:15:26 +00:00
Merge branch 'master' into bug4319
This commit is contained in:
commit
e94b64cd92
3 files changed
+5
-8
No files matched your search
+3
-2
@@ -6,6 +6,7 @@ import com.sap.sailing.domain.abstractlog.race.analyzing.impl.FinishedTimeFinder
|
||||
import com.sap.sailing.domain.common.abstractlog.NotRevokableException;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -54,7 +55,7 @@ public class ManagedRaceImpl implements ManagedRace {
|
||||
* the index
|
||||
* is of the race column in which this cell lies.
|
||||
* <p>
|
||||
* <p>
|
||||
*
|
||||
* Indices returned by this method start with zero, meaning the first race column in the series.
|
||||
* This
|
||||
* corresponds to what one would get by asking {@link Util#indexOf(Iterable, Object)
|
||||
@@ -147,7 +148,7 @@ public class ManagedRaceImpl implements ManagedRace {
|
||||
|
||||
@Override
|
||||
public Map<Competitor, Boat> getCompetitorsAndBoats() {
|
||||
return competitorsAndBoats;
|
||||
return Collections.unmodifiableMap(new HashMap<>(competitorsAndBoats));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-5
@@ -194,11 +194,7 @@ public abstract class SendingServiceAwareActivity extends ResilientActivity
|
||||
@Override
|
||||
public void onException(Exception exception) {
|
||||
if (exception == null || exception instanceof UnauthorizedException) {
|
||||
Context context = this;
|
||||
if (getSupportActionBar() != null) {
|
||||
context = getSupportActionBar().getThemedContext();
|
||||
}
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||
builder.setTitle(getString(R.string.sending_exception_title));
|
||||
builder.setMessage(getString(R.string.sending_exception_message));
|
||||
builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
|
||||
+1
-1
@@ -243,8 +243,8 @@ public class TrackingListFragment extends BaseFragment
|
||||
mComparator = mComparators.get(SORT_SAIL_NUMBER);
|
||||
|
||||
Util.addAll(getRace().getCompetitorsAndBoats().entrySet(), mCompetitorData);
|
||||
mFilteredCompetitorData.clear();
|
||||
mFilteredCompetitorData.addAll(mCompetitorData);
|
||||
sortCompetitors();
|
||||
|
||||
initializeFinishList();
|
||||
|
||||
|
||||
Reference in new issue
Block a user