Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c01811df authored by Lais Andrade's avatar Lais Andrade
Browse files

Fix session start race condition

Session finished callback is triggered before the session is ended at
the VibratorManagerService, which can cause a race condition if a second
session is started right away.

This will cause the second session to be ignored because the service is
still cleaning up the previous session.

Fixing the callback to be triggered after all operations at the service
are complete and the session is trully finished.

Bug: 392420704
Test: android.os.cts.VendorVibrationSessionTest
Flag: android.os.vibrator.vendor_vibration_effects
Change-Id: Ia2f1c2dec29eb5bc7515e9de1bd236b77bd84b83
parent 94fba95e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment