Jake Hamby 632a10f470 Fix settings NPE crash on launch.
Sometimes when the settings app is resumed, HeadsetProfileManager's
getConnectedDevices() method is called before the onServiceConnected()
callback gives us the proxy object, causing an NPE. Check that we
have the proxy object, and return an empty list otherwise. The
correct states will be shown in the UI because the
onServiceConnected() callback makes its own call to getConnectedDevices()
to set the correct headset profile state.

Bug: 3378431
Change-Id: I364ade0804fb2090378438c8721afef6cac2b0b8
2011-01-26 17:49:20 -08:00
2011-01-26 12:27:44 -08:00
2011-01-26 16:31:21 -08:00
2010-12-23 14:18:00 -08:00
2010-09-30 13:23:20 -07:00
2010-03-08 18:05:08 -08:00
Description
No description provided
3.1 GiB
Languages
Java 89.8%
Kotlin 10.2%