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
1 file changed