Add dummy logic for augmenting results
app/src/main/java/eu/lepiller/nani/MainActivity.java
201 | 201 | feedback_text.setText(""); | |
202 | 202 | ||
203 | 203 | ArrayList<Result> searchResult = r.getResults(); | |
204 | + | for(Result result: searchResult) { | |
205 | + | DictionaryFactory.augment(result); | |
206 | + | } | |
207 | + | ||
204 | 208 | MojiDetector detector = new MojiDetector(); | |
205 | 209 | String text = r.getText(); | |
206 | 210 | if(searchResult != null && searchResult.size()>0 && !r.isConverted() && detector.hasLatin(text)) { |
app/src/main/java/eu/lepiller/nani/dictionary/DictionaryFactory.java
219 | 219 | return new ArrayList<>(results.values()); | |
220 | 220 | } | |
221 | 221 | ||
222 | + | public static void augment(Result r) { | |
223 | + | } | |
224 | + | ||
222 | 225 | public static Dictionary get(int position) { | |
223 | 226 | return dictionaries.get(position); | |
224 | 227 | } |