BlackBerry 5.0 causing full menu to show on navigationClick
Posted
by jwadsack
on Stack Overflow
See other posts from Stack Overflow
or by jwadsack
Published on 2009-11-03T17:37:39Z
Indexed on
2010/04/30
14:47 UTC
Read the original article
Hit count: 187
blackberry
I have a BlackBerry app that is built for 4.5.x SDK. The first page of the app shows a list of fields and each field can be highlighted and clicked. The click action shows a new view with additional information about the field. This all works fine in 4.5, 4.6 and 4.7 and on the sim with 5.0.
On a real 9000 running 5.0, when clicking the trackball on an item in the list, the full menu is showing rather than the click event getting consumed (or even fired) for the field.
The view is derived from MainScreen and looks something like this:
public class ListView extends MainScreen {
public ItemCollection list = new ItemCollection;
protected void sublayout( int maxWidth, int maxHeight ) {
int i = 1;
while(( item == (Item)list.nextElement()) != null) {
ItemField field = new ItemField(item, i++);
add(field);
}
}
}
This class does not consume navigationClick, but shouldn't need to, right?
The field class does consume navigationClick event:
public class ItemField extends Field {
protected boolean navigationClick(int status, int time) {
controller.showDeal(item.id, Session.current);
return true;
}
}
Is there something that changed in 5.0 that I need to add to have this app work the same for all platforms?
© Stack Overflow or respective owner