Skip to content
Commit 546dd659 authored by Lais Andrade's avatar Lais Andrade
Browse files

Allow upcoming vibration when current one if being cancelled

The vibration cancellation at VibratorManagerService is asynchronous and
might take some time before it sets the current Vibration status to the
cancelled one requested. If a new binder call to vibrate arrived before
the status is updated then the new vibration might be ignored for the
current one, even though it's already being cancelled.

Add a check to the cancel signal sent to the VibrationStepConductor
before deciding to ignore new vibrations in favor of the ongoing.

Bug: 249032223
Test: VibratorManagerServiceTest
Change-Id: I8151d9ee0e30b7115e9cb3d6bcd272da2806b45c
parent 2e1bc7ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment