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:
Axel Uhl committed 2016-05-01 11:37:08 +02:00
1 parent bd0b929505
commit 2f364170bb
2 files changed
+15 -4

No files matched your search

@@ -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;