commit | b972663f6daf3cb60874e1169c3e080e735bc8b6 | [log] [tgz] |
---|---|---|
author | Yeabkal Wubshit <yeabkal@google.com> | Mon May 13 03:04:16 2024 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon May 13 03:04:16 2024 +0000 |
tree | 45823b384987cf1ff61943f86f9669a32fdeb173 | |
parent | 2e661a10da4b64742cd006438834afcb0ef058a7 [diff] | |
parent | d14f0147d0a55b2431e0d9fcc5752e4ffa7ffc11 [diff] |
Merge "Copy FocusEventDebugView MotionEvent before it gets recycled" into main
diff --git a/services/core/java/com/android/server/input/debug/FocusEventDebugView.java b/services/core/java/com/android/server/input/debug/FocusEventDebugView.java index 6eae9a4..d7d57df 100644 --- a/services/core/java/com/android/server/input/debug/FocusEventDebugView.java +++ b/services/core/java/com/android/server/input/debug/FocusEventDebugView.java
@@ -240,7 +240,8 @@ return; } - post(() -> handleRotaryInput(MotionEvent.obtain((MotionEvent) event))); + MotionEvent motionEvent = MotionEvent.obtain(event); + post(() -> handleRotaryInput(motionEvent)); } private void handleKeyEvent(KeyEvent keyEvent) {