sanders: KeyHandler: Increase delay a bit more to fix injectInputEvent
This commit is contained in:
@@ -646,11 +646,11 @@ public class KeyHandler implements DeviceKeyHandler {
|
||||
KeyEvent.ACTION_UP);
|
||||
|
||||
// add a small delay to make sure everything behind got focus
|
||||
handler.post(new Runnable(){
|
||||
handler.postDelayed(new Runnable(){
|
||||
@Override
|
||||
public void run() {
|
||||
im.injectInputEvent(downEvent,InputManager.INJECT_INPUT_EVENT_MODE_ASYNC);
|
||||
}});
|
||||
}}, 10);
|
||||
|
||||
handler.postDelayed(new Runnable(){
|
||||
@Override
|
||||
@@ -659,7 +659,7 @@ public class KeyHandler implements DeviceKeyHandler {
|
||||
if (mIsHapticFeedbackEnabledOnSystem_){
|
||||
setHapticFeedbackEnabledOnSystem(true);
|
||||
}
|
||||
}}, 10);
|
||||
}}, 20);
|
||||
}
|
||||
|
||||
private static void sendCloseSystemWindows(String reason) {
|
||||
|
||||
Reference in New Issue
Block a user