diff --git a/src/ui/android/src/org/grammaticalframework/ui/android/AlternativesActivity.java b/src/ui/android/src/org/grammaticalframework/ui/android/AlternativesActivity.java index 3fd5788f9..fee767b31 100644 --- a/src/ui/android/src/org/grammaticalframework/ui/android/AlternativesActivity.java +++ b/src/ui/android/src/org/grammaticalframework/ui/android/AlternativesActivity.java @@ -200,17 +200,17 @@ public class AlternativesActivity extends ListActivity { phrase = phrase.substring(2); } - // parse error or unknown translations (in []) present, darkest red color - else if (phrase.contains("parse error:") || phrase.contains("[")) { - descView.setBackgroundDrawable(getResources().getDrawable(R.drawable.second_person_worst_utterance_bg)); - } - // parse by chunks, marked by *, red color else if (phrase.charAt(0) == '*') { descView.setBackgroundDrawable(getResources().getDrawable(R.drawable.second_person_chunk_utterance_bg)); phrase = phrase.substring(2); } + // parse error or unknown translations (in []) present, darkest red color + else if (phrase.contains("parse error:") || phrase.contains("[")) { + descView.setBackgroundDrawable(getResources().getDrawable(R.drawable.second_person_worst_utterance_bg)); + } + // parse by domain grammar, marked by +, green color else if (phrase.charAt(0) == '+') { descView.setBackgroundDrawable(getResources().getDrawable(R.drawable.second_person_best_utterance_bg)); diff --git a/src/ui/android/src/org/grammaticalframework/ui/android/ConversationView.java b/src/ui/android/src/org/grammaticalframework/ui/android/ConversationView.java index b36555706..5800498fe 100644 --- a/src/ui/android/src/org/grammaticalframework/ui/android/ConversationView.java +++ b/src/ui/android/src/org/grammaticalframework/ui/android/ConversationView.java @@ -132,17 +132,17 @@ public class ConversationView extends ScrollView { target = target.subSequence(2, target.length()) ; } - // parse error or unknown translations (in []) present, darkest red color - else if (target.toString().contains("parse error:") || target.toString().contains("[")) { - view.setBackgroundDrawable(getResources().getDrawable(R.drawable.second_person_worst_utterance_bg)); - } - // parse by chunks, marked by *, red color else if (target.charAt(0) == '*') { view.setBackgroundDrawable(getResources().getDrawable(R.drawable.second_person_chunk_utterance_bg)); target = target.subSequence(2, target.length()) ; } + // parse error or unknown translations (in []) present, darkest red color + else if (target.toString().contains("parse error:") || target.toString().contains("[")) { + view.setBackgroundDrawable(getResources().getDrawable(R.drawable.second_person_worst_utterance_bg)); + } + // parse by domain grammar, marked by +, green color else if (target.charAt(0) == '+') { view.setBackgroundDrawable(getResources().getDrawable(R.drawable.second_person_best_utterance_bg));