BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-10-2008, 03:14 PM   #1 (permalink)
New Member
 
Join Date: Apr 2008
Model: none
PIN: N/A
Carrier: starhub
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default MENUITEM_SMS_EDIT returns wrong context object - a bug!

Please Login to Remove!

Hi all,

I have encountered a serious bug with adding menu item to SMS in edit mode. When run(Object context) is called, the context is wrong! Instead of the being the current SMS, it is the earlier/previous SMS!

This bug happens on 4.2, but not on 4.3! Anyone know about this issue? I think it is unlikely there is a workaround to make it work on 4.2.. but if anyone knows anything, pls advise.. Thanks.

My code is

Code:
ApplicationMenuItemRepository repository = ApplicationMenuItemRepository.getInstance();        
repository.addMenuItem(ApplicationMenuItemRepository.MENUITEM_SMS_EDIT, mySmsMenu, app);

...

// mySmsMenu implementing run(..)
public Object run(Object context) {
    TextMessage sms = (TextMessage)context;
    // sms should be the current sms being edited... BUT it is the earlier sms!!
}
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

MAIN FRAME WIRING HARNESS 2008 CAT 232B SKIDSTEER
$99.0
MAIN FRAME WIRING HARNESS 2008 CAT 232B SKIDSTEER pictureTEKTRONIX TM506 6-SLOT MAINFRAME / CHASSIS TM500 SERIES POWERS UP
$95.0
TEKTRONIX TM506 6-SLOT MAINFRAME / CHASSIS TM500 SERIES POWERS UP pictureTektronix TM5006 6-Slot Power Mainframe with DC5009 counter 5 empty bays
$199.95
Tektronix TM5006 6-Slot Power Mainframe with DC5009 counter 5 empty bays pictureEXFO FTB-100B Mini OTDR Mainframe & FTB-7300D SM OTDR
$4999.0
EXFO FTB-100B Mini OTDR Mainframe & FTB-7300D SM OTDR pictureHP 70001A MAINFRAME SYSTEM W/70310A, 70902A, 70900A & 70904A
$2999.99
HP 70001A MAINFRAME SYSTEM W/70310A, 70902A, 70900A & 70904A picture






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