Skip to content

Commit

Permalink
Fix last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
daneren2005 committed Aug 22, 2013
1 parent 1f32f06 commit cc6a613
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,21 @@ public void onStart(Intent intent) {
new Thread(new Runnable(){
@Override
public void run() {
boolean locked = false;
try {
// Make sure everything is ready to go before handling event
if(!setup.get()) {
locked = true;
lock.lock();
}
handleKeyEvent(event);
} finally {
lock.unlock();
if(locked) {
lock.unlock();
}
}
}
});
}).start();
}
}
}
Expand Down

0 comments on commit cc6a613

Please sign in to comment.