do not highlight dictionaries that are not downloaded
CHANGELOG.md
| 1 | 1 | Changelog | |
| 2 | 2 | ========= | |
| 3 | 3 | ||
| 4 | + | Changes Since 0.2.2.1 | |
| 5 | + | --------------------- | |
| 6 | + | ||
| 7 | + | ### Bug Fixes | |
| 8 | + | ||
| 9 | + | * Do not highlight dictionaries that have not been downloaded, even if there is | |
| 10 | + | a new version. | |
| 11 | + | ||
| 4 | 12 | Changes In 0.2.2.1 | |
| 5 | 13 | ------------------ | |
| 6 | 14 |
app/src/main/java/eu/lepiller/nani/dictionary/DictionariesAdapter.java
| 60 | 60 | ||
| 61 | 61 | name_view.setText(dictionary.getName()); | |
| 62 | 62 | description_view.setText(dictionary.getDescription()); | |
| 63 | - | if(!dictionary.isUpToDate()) | |
| 63 | + | if(!dictionary.isUpToDate() && dictionary.isDownloaded()) | |
| 64 | 64 | convertView.setBackgroundColor(context.getResources().getColor(R.color.colorUpdate)); | |
| 65 | 65 | else | |
| 66 | 66 | convertView.setBackgroundColor(0); | |
… | |||
| 74 | 74 | else | |
| 75 | 75 | size_view.setText(String.format(context.getString(R.string.dictionary_expected_size_mb), nf.format(size/1000000))); | |
| 76 | 76 | ||
| 77 | - | int entries = dictionary.getExpectedEntries(); | |
| 77 | + | int entries = dictionary.getExpectedEntries(); | |
| 78 | 78 | entry_count_view.setText(context.getResources().getQuantityString(R.plurals.dico_entry_count, entries, nf.format(entries))); | |
| 79 | 79 | ||
| 80 | 80 | // Return the completed view to render on screen | |