Esempio n. 1
0
 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;
     }
   }
 }
Esempio n. 2
0
 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;
     }
   }
 }