Moved initialization of app list adapter to onCreate.
This commit is contained in:
parent
a17d09e0a2
commit
3b84f110ac
@ -38,13 +38,14 @@ public class SearchResults extends ListActivity {
|
|||||||
|
|
||||||
private static final int SEARCH = Menu.FIRST;
|
private static final int SEARCH = Menu.FIRST;
|
||||||
|
|
||||||
private AppListAdapter applist = new AppListAdapter(this);
|
private AppListAdapter applist;
|
||||||
|
|
||||||
private String mQuery;
|
private String mQuery;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
applist = new AppListAdapter(this);
|
||||||
setContentView(R.layout.searchresults);
|
setContentView(R.layout.searchresults);
|
||||||
|
|
||||||
Intent intent = getIntent();
|
Intent intent = getIntent();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user