Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
2f9b31c1
Commit
2f9b31c1
authored
May 06, 2012
by
Sébastien Toque
Browse files
do not use ArrayAdapter.addAll (added in API11) to keep compatibility
parent
1f6123cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/SearchActivity.java
View file @
2f9b31c1
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment