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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user