Fix crash in CachedBluetoothDevice.
In LocalBluetoothProfileManager, we will update profiles in constructor by register service callback to bluetooth profiles. So the callback may return before this constructor, in which case mBluetoothProfileManager maybe null in LocalBluetoothMangaer. This cl moves the updateLocalProfiles() out of the constructor, to make sure we will first construct mBluetoothProfileManger and then connect to bluetooth profiles. Change-Id: I93a388cf0598555d26181a6b0da99dcb35f227dd Fixes: 113290231 Test: RunSettingsRoboTests
Loading
Please register or sign in to comment