android: Remove hack not needed anymore (since 58e097d).

Change-Id: I3396a1245fe5fcbb5d2494bfabf8972c7617e6b1
This commit is contained in:
Thomas Martitz 2012-03-22 23:46:54 +01:00
parent 901521d6de
commit 2e03c2a8b3

View file

@ -116,13 +116,6 @@ public class RockboxService extends Service
if (intent.getAction().equals(Intent.ACTION_MEDIA_BUTTON))
{
/* give it a bit of time so we can register button presses
* sleeping longer doesn't work here, apparently Android
* surpresses long sleeps during intent handling */
try {
Thread.sleep(50);
} catch (InterruptedException e) { }
KeyEvent kev = intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);
RockboxFramebuffer.buttonHandler(kev.getKeyCode(),
kev.getAction() == KeyEvent.ACTION_DOWN);