protected void updateLanguageList(String lang, int status) { for (int i = 0; i < mAdapter.getCount(); i++) { final OCRLanguage language = (OCRLanguage) mAdapter.getItem(i); if (language.getValue().equalsIgnoreCase(lang)) { updateLanguage(language, status); return; } } }
protected void updateLanguageListByDisplayValue(String displayValue, int status) { for (int i = 0; i < mAdapter.getCount(); i++) { final OCRLanguage language = (OCRLanguage) mAdapter.getItem(i); if (language.getDisplayText().equalsIgnoreCase(displayValue)) { updateLanguage(language, status); return; } } }