sanders: KeyHandler: Increase delay a bit more to fix injectInputEvent

This commit is contained in:
jhenrique09
2017-10-24 23:08:04 -02:00
committed by therootlord
parent c846e096a6
commit 4dcaffafbf

View File

@@ -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) {