Fix android server creation exit crash
This commit is contained in:
parent
7d1afc99fe
commit
2ff899e23e
@ -1642,6 +1642,9 @@ bool CIrrDeviceAndroid::isGyroscopeAvailable()
|
||||
|
||||
bool CIrrDeviceAndroid::hasHardwareKeyboard() const
|
||||
{
|
||||
// This can happen when hosting server in android
|
||||
if (!Android)
|
||||
return true;
|
||||
int32_t keyboard = AConfiguration_getKeyboard(Android->config);
|
||||
return (keyboard == ACONFIGURATION_KEYBOARD_QWERTY);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user