fixed exception message text

Change-Id: I18ef82f89058202bed4806bc43e95d5fca0c1ed7
This commit is contained in:
Axel Uhl committed 2016-04-18 23:43:10 +02:00
1 parent 44bb552661
commit f1fedb1d0e
2 files changed
+1 -3

No files matched your search

@@ -243,7 +243,7 @@ public class CourseFragmentMarks extends CourseFragment implements CourseMarkAda
if (ex.getMessage().equals("Missing second mark")) {
String toastText = getString(R.string.error_missing_second_mark);
Toast.makeText(getActivity(), toastText, Toast.LENGTH_LONG).show();
} else if (ex.getMessage().equals("Each waypoints needs passing instructions")) {
} else if (ex.getMessage().equals("Each waypoint needs passing instructions")) {
String toastText = getString(R.string.error_missing_passing_instructions);
Toast.makeText(getActivity(), toastText, Toast.LENGTH_LONG).show();
}
@@ -258,7 +258,6 @@ public class CourseFragmentMarks extends CourseFragment implements CourseMarkAda
Button unpublish = (Button) getView().findViewById(R.id.unpublishCourse);
if (unpublish != null) {
unpublish.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
CourseBase emptyCourse = new CourseDataImpl(getString(R.string.unpublished_course));