waleedAhmad1 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

Ability to keep the options menu open after handling OnOptionsItemSelected() #620

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be handy if you were able to keep the options menu open after handling 
OnOptionsItemSelected(). This would be great for adding "favorite"/"unfavorite" 
menu items.

Original issue reported on code.google.com by jeroen.s...@gmail.com on 22 Oct 2014 at 3:04

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for the report! Can't you simply call `openOptionsMenu()` after you've 
dealt with the selected menu item?

Best,
Alain

Original comment by ala...@google.com on 22 Oct 2014 at 10:27

GoogleCodeExporter commented 9 years ago
Unfortunately not, since it closes the options menu after 
OnOptionsItemSelected().

Original comment by jeroen.s...@gmail.com on 27 Oct 2014 at 2:43

GoogleCodeExporter commented 9 years ago
You can do this in the onOptionsMenuClosed() callback and/or post the 
openOptionsMenu() call in a Runnable so that it's run at the end of the thread.

Original comment by ala...@google.com on 28 Oct 2014 at 3:19

GoogleCodeExporter commented 9 years ago
It seems that what I really want is a checkable menu item. I didn't have any 
experience with creating apps for Android before starting with this Google 
Glass app so I didn't know those existed. Anyway, they're not supported on 
Glass yet. Can checkable menu items be supported in the future?

Original comment by jeroen.s...@gmail.com on 29 Oct 2014 at 9:27