[android] Fixed Category selection on Android < 3.

This commit is contained in:
vng 2014-03-17 18:53:07 +03:00 committed by Alex Zolotarev
parent a4b6c771b9
commit 082ac10d57

View file

@ -46,8 +46,6 @@ public class ChooseBookmarkCategoryActivity extends AbstractBookmarkCategoryActi
{
super.onCreate(savedInstanceState);
setListAdapter(new ChooseBookmarkCategoryAdapter(this, getIntent().getIntExtra(BookmarkActivity.PIN_SET, 0)));
m_handler = new FooterHandler();
getListView().setOnItemClickListener(new OnItemClickListener()
{
@ -66,6 +64,9 @@ public class ChooseBookmarkCategoryActivity extends AbstractBookmarkCategoryActi
}
});
// Set adapter only after FooterHandler is initialized and added into layout.
setListAdapter(new ChooseBookmarkCategoryAdapter(this, getIntent().getIntExtra(BookmarkActivity.PIN_SET, 0)));
registerForContextMenu(getListView());
}