Skip to content
Commit d2708f0b authored by Arthur Hung's avatar Arthur Hung
Browse files

Fix no vibration when typing from time to time

VibratorService would ignore the vibration request by checking
if the uid state is in background from cache.
But the cache updating from UidObserver would be handled after
service connected and responded.
That would cause some time gap to check if the process
is in foreground.

- Change to the full update when bindService that guarantees
  the UidObserver is called in time.

Test: atest AppComponentFactoryTest
Test: atest VibratorTest
Test: Change software keyboard between different windows.
Bug: 121436339
Change-Id: If260dc19e1a32c9dbb58c8ce960f295c6c919406
parent b31576df
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