This commit is contained in:
Victor Shcherb 2014-11-06 23:39:27 +01:00
parent d21179a66d
commit 3b3e27cdc9

View file

@ -173,9 +173,9 @@ public class DownloadIndexAdapter extends OsmandBaseExpandableListAdapter implem
if (items != null && !items.isEmpty()) { if (items != null && !items.isEmpty()) {
list.addAll(IndexItemCategory.categorizeIndexItems(app, items)); list.addAll(IndexItemCategory.categorizeIndexItems(app, items));
} else if(DownloadIndexAdapter.this.indexFiles.isEmpty()){ } else if(DownloadIndexAdapter.this.indexFiles.isEmpty()){
list.add(new IndexItemCategory(downloadFragment.getResources().getString(R.string.no_index_file_to_download), 1)); list.add(new IndexItemCategory(app.getString(R.string.no_index_file_to_download), 1));
} else { } else {
list.add(new IndexItemCategory(downloadFragment.getResources().getString(R.string.select_index_file_to_download), 1)); list.add(new IndexItemCategory(app.getString(R.string.select_index_file_to_download), 1));
} }
} }
notifyDataSetChanged(); notifyDataSetChanged();