commit | 14e43ef0de1a2462050e5e69f740d7a4b0b5618b | [log] [tgz] |
---|---|---|
author | Vinit Nayak <peanutbutter@google.com> | Thu Oct 24 10:25:14 2024 -0400 |
committer | Vinit Nayak <peanutbutter@google.com> | Thu Oct 24 10:25:14 2024 -0400 |
tree | e96bb64dc68ee04cd73eb69172770b1fca1e0138 | |
parent | 76fa57f418972833d63ee2ac3672408da7e07a0e [diff] |
Disable OrientationEventListener in RotationTouchHelper#destroy() * Also cleared the list of runnables to run on destroy after they are all executed Bug: 361850561 Flag: EXEMPT bugfix Test: QS works as expected in different rotations Change-Id: If0dfbb7d538b24fe7aad0b4ed427d779b5a86bfd
diff --git a/quickstep/src/com/android/quickstep/RotationTouchHelper.java b/quickstep/src/com/android/quickstep/RotationTouchHelper.java index 80c07196..79abc0f 100644 --- a/quickstep/src/com/android/quickstep/RotationTouchHelper.java +++ b/quickstep/src/com/android/quickstep/RotationTouchHelper.java
@@ -180,6 +180,7 @@ } } }; + runOnDestroy(() -> mOrientationListener.disable()); mNeedsInit = false; } @@ -212,6 +213,7 @@ r.run(); } mNeedsInit = true; + mOnDestroyActions.clear(); } public boolean isTaskListFrozen() {