Display the error message on screen
app/src/main/java/eu/lepiller/nani/MainActivity.java
202 | 202 | if (e instanceof NoDictionaryException) { | |
203 | 203 | Snackbar.make(findViewById(R.id.search_form), getString(R.string.no_dic), | |
204 | 204 | Snackbar.LENGTH_LONG).show(); | |
205 | + | feedback_text.setText(getString(R.string.no_dic)); | |
205 | 206 | } else if(e instanceof IncompatibleFormatException) { | |
206 | 207 | Snackbar.make(findViewById(R.id.search_form), String.format(getString(R.string.incompatible_format), | |
207 | 208 | ((IncompatibleFormatException) e).getName()), Snackbar.LENGTH_LONG).show(); | |
209 | + | feedback_text.setText(String.format(getString(R.string.incompatible_format), | |
210 | + | ((IncompatibleFormatException) e).getName())); | |
208 | 211 | } else if(e instanceof NoResultDictionaryException) { | |
209 | 212 | StringBuilder sb = new StringBuilder(); | |
210 | 213 | boolean first = true; | |
… | |||
218 | 221 | } | |
219 | 222 | feedback_text.setText(String.format(getString(R.string.feedback_no_result_tried), sb.toString())); | |
220 | 223 | } | |
221 | - | ||
222 | - | feedback_text.setText(R.string.feedback_no_result); | |
223 | 224 | return; | |
224 | 225 | } | |
225 | 226 |