Fix issue #1985502: Sapphire (and any other device) reports that it has a hard keyboard
This commit is contained in:
@@ -11839,10 +11839,12 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
|
||||
config.reqTouchScreen = mConfiguration.touchscreen;
|
||||
config.reqKeyboardType = mConfiguration.keyboard;
|
||||
config.reqNavigation = mConfiguration.navigation;
|
||||
if (mConfiguration.navigation != Configuration.NAVIGATION_NONAV) {
|
||||
if (mConfiguration.navigation == Configuration.NAVIGATION_DPAD
|
||||
|| mConfiguration.navigation == Configuration.NAVIGATION_TRACKBALL) {
|
||||
config.reqInputFeatures |= ConfigurationInfo.INPUT_FEATURE_FIVE_WAY_NAV;
|
||||
}
|
||||
if (mConfiguration.keyboard != Configuration.KEYBOARD_UNDEFINED) {
|
||||
if (mConfiguration.keyboard != Configuration.KEYBOARD_UNDEFINED
|
||||
&& mConfiguration.keyboard != Configuration.KEYBOARD_NOKEYS) {
|
||||
config.reqInputFeatures |= ConfigurationInfo.INPUT_FEATURE_HARD_KEYBOARD;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user