commit | 98df940fab7cbc5f9258752ce41778681ebf9e32 | [log] [tgz] |
---|---|---|
author | Ian Lake <ilake@google.com> | Sun Jul 12 15:03:57 2015 -0700 |
committer | Ian Lake <ilake@google.com> | Sun Jul 12 17:27:11 2015 -0700 |
tree | a2484222d742b2b1f722e3a6a62186c033ebd4aa | |
parent | cdbdcb29b4a4e3bf1553f824902562cee3fcb723 [diff] |
Fix MediaControllerCompat.dispatchKeyEvent() crash <API21 KeyEvent was incorrectly being cast to an Intent when handling dispatchKeyEvent on pre-Lollipop devices. Construct a new Intent with the correct action and embed the KeyEvent so that the appropriate callback can receive the Intent as expected. BUG: 22433218 Change-Id: I055c71ca3a6dc61289745e724da6e539123193e8