mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-04 10:09:42 +00:00
bug3639: made the passing instruction entry work; considering removing Offset and FixedBearing for now (declaring them "useless")
Change-Id: Ia32911b5b01ad02b6ecebc396cb0d0b1ea6a1803
This commit is contained in:
1 parent
bd0b929505
commit
2f364170bb
2 files changed
+15
-4
No files matched your search
+5
-1
@@ -457,13 +457,17 @@ public class CourseFragmentMarks extends CourseFragment implements CourseMarkAda
|
||||
final CharSequence[] i18NPassingInstructions = getI18NPassingInstructions(passingInstructionsRelevantForUserEntry);
|
||||
builder.setTitle(R.string.pick_a_rounding_direction).setItems(i18NPassingInstructions, new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int position) {
|
||||
PassingInstruction pickedDirection = PassingInstruction.relevantValues()[position];
|
||||
PassingInstruction pickedDirection = passingInstructionsRelevantForUserEntry[position];
|
||||
onPassingInstructionPicked(courseElement, pickedDirection);
|
||||
}
|
||||
});
|
||||
builder.create().show();
|
||||
}
|
||||
|
||||
/**
|
||||
* Cosntructs a message text for each of the {@link PassingIntsruction} values passed. The message strings
|
||||
* returned correspond in their order with the {@link PassingInstruction}s passed in the array.
|
||||
*/
|
||||
private CharSequence[] getI18NPassingInstructions(PassingInstruction[] passingInstructionsRelevantForUserEntry) {
|
||||
final CharSequence[] result = new CharSequence[passingInstructionsRelevantForUserEntry.length];
|
||||
int i=0;
|
||||
|
||||
Reference in new issue
Block a user