-// class Adapter extends BaseAdapter {
-//
-// final List<DictionaryInfo> dictionaryInfos = new ArrayList<DictionaryInfo>();
-//
-// Adapter() {
-// final String filter = filterSearchView.getText().toString().trim().toLowerCase();
-// for (final DictionaryInfo dictionaryInfo : application.getAllDictionaries()) {
-// boolean canShow = true;
-// if (hideDownloadable.isChecked()
-// && !application.isDictionaryOnDevice(dictionaryInfo.uncompressedFilename)) {
-// canShow = false;
-// }
-// if (canShow && filter.length() > 0) {
-// if (!application.getDictionaryName(dictionaryInfo.uncompressedFilename)
-// .toLowerCase().contains(filter)) {
-// canShow = false;
-// }
-// }
-// if (canShow) {
-// dictionaryInfos.add(dictionaryInfo);
-// }
-// }
-// }
-//
-// @Override
-// public int getCount() {
-// return dictionaryInfos.size();
-// }
-//
-// @Override
-// public DictionaryInfo getItem(int position) {
-// return dictionaryInfos.get(position);
-// }
-//
-// @Override
-// public long getItemId(int position) {
-// return position;
-// }
-//
-// @Override
-// public View getView(final int position, View convertView, final ViewGroup parent) {
-// if (convertView == null) {
-// convertView = LayoutInflater.from(parent.getContext()).inflate(
-// R.layout.dictionary_manager_row, parent, false);
-// }
-//
-// final DictionaryInfo dictionaryInfo = getItem(position);
-//
-// final TextView textView = (TextView) convertView.findViewById(R.id.dictionaryName);
-// final String name = application.getDictionaryName(dictionaryInfo.uncompressedFilename);
-// textView.setText(name);
-//
-// final Button downloadButton = (Button) convertView
-// .findViewById(R.id.dictionaryDownloadButton);
-// final boolean updateAvailable = application.updateAvailable(dictionaryInfo);
-// final DictionaryInfo downloadable = application
-// .getDownloadable(dictionaryInfo.uncompressedFilename);
-// if (updateAvailable) {
-// downloadButton.setCompoundDrawablesWithIntrinsicBounds(
-// android.R.drawable.ic_menu_add,
-// 0, 0, 0);
-// downloadButton.setText(getString(R.string.downloadButton,
-// downloadable.zipBytes / 1024.0 / 1024.0));
-// } else if (!application.isDictionaryOnDevice(dictionaryInfo.uncompressedFilename)) {
-// downloadButton.setCompoundDrawablesWithIntrinsicBounds(
-// android.R.drawable.ic_menu_add,
-// 0, 0, 0);
-// downloadButton.setText(getString(R.string.downloadButton,
-// downloadable.zipBytes / 1024.0 / 1024.0));
-// } else {
-// downloadButton.setCompoundDrawablesWithIntrinsicBounds(
-// android.R.drawable.checkbox_on_background,
-// 0, 0, 0);
-// downloadButton.setText("");
-// }
-// final Intent intent = getDownloadIntent(downloadable);
-// downloadButton.setOnClickListener(new IntentLauncher(parent.getContext(), intent));
-//
-// // Add the information about each index.
-// final TextView dictionaryDetails = (TextView) convertView
-// .findViewById(R.id.dictionaryDetails);
-// final StringBuilder builder = new StringBuilder();
-// for (final IndexInfo indexInfo : dictionaryInfo.indexInfos) {
-// if (builder.length() > 0) {
-// builder.append(" | ");
-// }
-// builder.append(getString(R.string.indexInfo, indexInfo.shortName,
-// indexInfo.mainTokenCount));
-// }
-// dictionaryDetails.setText(builder.toString());
-//
-// // // Because we have a Button inside a ListView row:
-// // //
-// // http://groups.google.com/group/android-developers/browse_thread/thread/3d96af1530a7d62a?pli=1
-// // convertView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);
-// convertView.setClickable(true);
-// convertView.setFocusable(true);
-// convertView.setLongClickable(true);
-// // result.setBackgroundResource(android.R.drawable.menuitem_background);
-// convertView.setOnClickListener(new TextView.OnClickListener() {
-// @Override
-// public void onClick(View v) {
-// DictionaryManagerActivity.this.onClick(position);
-// }
-// });
-//
-// return convertView;
-// }
-// }
-