private void processExpectedResult(String result) { // If result is affirmative then assume it is in response to a confirmation question and // perform pending action associated with current search if (yesNoSearch.getYesTerms().getSearchTerms().contains(result)) { yesNoSearch.setActive(false); Log.d(TAG, "user answered yes"); performAction(yesNoSearch.getYesAction(), result); return; } // If result is negative, assume it is in response to a confirmation as above if (yesNoSearch.getNoTerms().getSearchTerms().contains(result)) { yesNoSearch.setActive(false); Log.d(TAG, "user answered no"); Log.d(TAG, "current no action = " + yesNoSearch.getNoAction()); performAction(yesNoSearch.getNoAction(), result); return; } // Otherwise set next search, update UI and start listening for next input mActionHandler.setActionPerformed(false); setCurrentSearchByString(result); Log.d(TAG, "new current search before UI update = " + Search.getCurrentSearch().getName()); }