QSLongPressEffect Animator initialized when called to START
Initializing the animator now happens in the action to START the effect. This guarantees that the animator is created every time it is required to start. With this, the long-press effect logic holds after device rotations, which causes the view binder to re-launch the collector coroutine, thereby setting the animator to null. This also removes the INITIALIZE_ANIMATOR action, which saves an extra coroutine continuation event. Test: SystemUiRoboTests:QSLongPressEffectTest Flag: ACONFIG quick_settings_visual_haptics_longpress TEAMFOOD Bug: 337271048 Change-Id: I3f3ec5372e5b662aad4eab834518362e0a0b2a53
Loading
Please register or sign in to comment