Merge "Disable OrientationEventListener in RotationTouchHelper#destroy()" into main

This commit is contained in:
Vinit Nayak authored and Android (Google) Code Review committed 2024-10-30 01:38:32 +00:00
commit d626cdd727
1 file changed
+2
@@ -180,6 +180,7 @@ public class RotationTouchHelper implements DisplayInfoChangeListener, SafeClose
}
}
};
runOnDestroy(() -> mOrientationListener.disable());
mNeedsInit = false;
}
@@ -212,6 +213,7 @@ public class RotationTouchHelper implements DisplayInfoChangeListener, SafeClose
r.run();
}
mNeedsInit = true;
mOnDestroyActions.clear();
}
public boolean isTaskListFrozen() {