BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-19-2007, 11:31 AM   #1 (permalink)
New Member
 
Join Date: Jun 2007
Model: 7390
PIN: N/A
Carrier: verizon
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default "change language" option crashes

Please Login to Remove!

All,
Do we have a work around for the crashes happening in "change language" option in 4.1 OS of blackberry, I know this issue has been fixed in the later version , but for current users in 4.1 , is there a work around ?? if yes can someone post it ?

thanks!!
Offline  
Old 07-24-2007, 06:16 AM   #2 (permalink)
New Member
 
Join Date: Jun 2006
Model: 8100
Carrier: IPlus
Posts: 13
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I guess the only fix is to eliminate it, you can do some check for OS version or device type to disable it only when needed...
Override this method in BasicEditField:

public ContextMenu getContextMenu() {
// eliminating bug in particular OS, removing "Change Language" item
ContextMenu menu = super.getContextMenu();
MenuItem items[] = new MenuItem[menu.getSize()];
MenuItem menuItem = null;
try {
for (int i = 0; i < items.length; i++) {
menu.setDefault(i);
menuItem = menu.getDefaultItem();
if (menuItem.getId() != 10089) items[i] = menuItem;
}
menu.clear();

for (int i = 0; i < items.length; i++) {
if (items[i] != null) {
menu.addItem(items[i]);
}
}

} catch (Exception e) {
System.out.println(e);
}

return menu;
}
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.