Skip to content

Instantly share code, notes, and snippets.

@hl5pma

hl5pma/gist:6518622

Forked from skyisle/gist:3870191
Created Sep 11, 2013
Embed
What would you like to do?
try {
// force to use overflow menu
ViewConfiguration config = ViewConfiguration.get(this);
Field menuKeyField = ViewConfiguration.class
.getDeclaredField("sHasPermanentMenuKey");
if (menuKeyField != null) {
menuKeyField.setAccessible(true);
menuKeyField.setBoolean(config, false);
}
} catch (Exception ex) {
// Ignore
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment