Skip to content

Commit

Permalink
Merge pull request xbmc#12167 from koying/fixkbdcrashL
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins4kodi authored May 28, 2017
2 parents 74886ff + e76a385 commit 107b192
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/platform/android/activity/AndroidKey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,10 @@ bool CAndroidKey::onKeyboardEvent(AInputEvent *event)
int32_t keycode = AKeyEvent_getKeyCode(event);

int32_t deviceId = AInputEvent_getDeviceId(event);
uint16_t unicode = 0;
CJNIKeyCharacterMap map = CJNIKeyCharacterMap::load(deviceId);
uint16_t unicode = map.get(keycode, state);
if (map)
unicode = map.get(keycode, state);

// Check if we got some special key
uint16_t sym = XBMCK_UNKNOWN;
Expand Down

0 comments on commit 107b192

Please sign in to comment.