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