Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hasPermanentMenuKey should return false when menu action is mapped to long press button #1

Open
moneytoo opened this issue Nov 13, 2014 · 2 comments

Comments

@moneytoo
Copy link
Contributor

Sorry for bugging you here but as there's no M snapshot release for klte and I have no logcat, so I write here instead of CM tracker.

With stock firmware, there's no permanent menu key but the task button retains such functionality when long pressing it.

With CyanogenMod there's no such functionality by default so I have to set it in menu to open menu when long pressing the task button. This however changes the return value of WindowManager.hasMenuKeyEnabled() and therefore ViewConfiguration.hasPermanentMenuKey() to true.

In my case, I want to the primarily used software menu in apps such as Chrome or Firefox (which test hasPermanentMenuKey()) while having menu press accessible for some legacy apps (Xabber and many more).
Because Galaxy S5 with stock firmware passed Google Android Compatibility tests, I guess that it's correct to return false even when menu action is mapped to long press.

@ahmedsolima
Copy link

As

@2favn
Copy link

2favn commented Jul 10, 2015

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants