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!!
}