I am trying to understand the flow that leads to the rotation of views when the device orientation is changed. Per my limited understanding so far, onSensorChanged() method in frameworks/base/core/java/android/view/WindowOrientationListener.java seems to be making sure that the device orientation is stable for certain duration (SETTLE_TIME_MIN_MS) before rotating the view. However, I don't see any instance of how it is being used. Please correct me if my understanding is wrong.
Please note that I am not trying to override methods of or extend WindowOrientationListener. I am only trying to understand the code flow and how one gets to the onSensorChanged() or any code that deals with the settling time before rotating a view on orientation change.
0 comments:
Post a Comment