forked from organicmaps/organicmaps
[android] Fixed Category selection on Android < 3.
This commit is contained in:
parent
a4b6c771b9
commit
082ac10d57
1 changed files with 3 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue