+ // Without this extra indirection, the call to jumpToRow that this
+ // invokes didn't actually have any effect.
+ final int actualIndexToUse = indexToUse;
+ getListView().post(new Runnable() {
+ @Override
+ public void run() {
+ setIndexAndSearchText(actualIndexToUse, selectedText);
+ }
+ });