am d58317b2: am 368daafc: Merge "Only simulate the first click if "Always use" button is available" into klp-dev

* commit 'd58317b2824656727b24f0b4c99e091954d05125':
  Only simulate the first click if "Always use" button is available
This commit is contained in:
Amith Yamasani
2013-10-24 12:35:37 -07:00
committed by Android Git Automerger

View File

@@ -181,11 +181,12 @@ public class ResolverActivity extends AlertActivity implements AdapterView.OnIte
} else {
mAlwaysUseOption = false;
}
}
final int initialHighlight = mAdapter.getInitialHighlight();
if (initialHighlight >= 0) {
mListView.setItemChecked(initialHighlight, true);
onItemClick(null, null, initialHighlight, 0); // Other entries are not used
// Set the initial highlight if there was a preferred or last used choice
final int initialHighlight = mAdapter.getInitialHighlight();
if (initialHighlight >= 0) {
mListView.setItemChecked(initialHighlight, true);
onItemClick(null, null, initialHighlight, 0); // Other entries are not used
}
}
}