Fix missing connection state changes intent for Hearing Aids

In some corner cases, the intent receiver for hearing aids CONNECTION_STATE_CHANGED
is not registered. This fixes this problem. We need to check hearing aid
profile before updateLocalProfile().

Note: This has been totally fixed in master in refactoring code.

Bug: 116317072
Bug: 116044083
Bug: 116643085
Test: Manual tests with one Hearing Aid device and in Settings-Device
details page.

Change-Id: I20bf6b9fe929cd8753a20b8112e66467e560f6df
Merged-In: Id2dc364dfa815e72db91b92bcee9745e6c40d34a
1 file changed