Commit 2f9b31c1 authored by Sébastien Toque's avatar Sébastien Toque

do not use ArrayAdapter.addAll (added in API11) to keep compatibility

parent 1f6123cd
......@@ -164,7 +164,9 @@ public class SearchActivity extends ListActivity {
DatabaseManager db = DatabaseManager.getInstance(this);
mHistoryAdapter.clear();
mHistoryAdapter.addAll(db.getSearchhistory(20));
ArrayList<String> history = db.getSearchhistory(20);
for (String s : history)
mHistoryAdapter.add(s);
mHistoryAdapter.notifyDataSetChanged();
setListAdapter(mHistoryAdapter);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment