mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 737445 - java.lang.ClassCastException: java.lang.String at org.mozilla.gecko.FormAssistPopup$AutoCompleteListAdapter.populateSuggestionsList(FormAssistPopup.java). r=mfinkle
This commit is contained in:
parent
972d90ca7e
commit
a1e1d9df70
@ -283,7 +283,7 @@ public class FormAssistPopup extends ListView implements GeckoEventListener {
|
||||
public void populateSuggestionsList(JSONArray suggestions) {
|
||||
try {
|
||||
for (int i = 0; i < suggestions.length(); i++) {
|
||||
JSONObject suggestion = (JSONObject) suggestions.get(i);
|
||||
JSONObject suggestion = suggestions.getJSONObject(i);
|
||||
String label = suggestion.getString("label");
|
||||
String value = suggestion.getString("value");
|
||||
add(new Pair<String, String>(label, value));
|
||||
|
Loading…
Reference in New Issue
Block a user