Slight issue with option menu in mailbox
Issue #36
resolved
When a user selects some mails (before using the option menu) the option menu does not allow to delete and mark them as read the first time it is accessed. Next accesses to the option menu works fine, it is only the 1st time.
The problem comes from the fact that the option menu is prepared before the mail is selected, and selecting a mail does not invalidate it. Further accesses to the option menu work fine because then the option menu is recreated each time. Not sure where this behaviour comes from.
Comments (4)
-
reporter -
repo owner Thanks for the investigation. This doesn't seem to happen on 4.2.2 from what I can tell.
Quick workaround would be to keep the options enabled at all time.
-
repo owner - removed milestone
- changed version to Evanova 1.3
Changed to 1.3. This doesn't always happen and is not a blocker for 1.2
-
repo owner - changed status to resolved
- Log in to comment
The correct behaviour (according to the documentation) is that onPrepareOptionMenu() is called before each option menu display. If this was the case the option menu would always be in the correct state.
Unfortunately, the observed behaviour is an android issues and I couldn't find any solution or workaround:
http://code.google.com/p/android/issues/detail?id=35604
http://code.google.com/p/android/issues/detail?id=11833