Settings app: Run Bluetooth Event receiver when not in fg.

Also fix connection indication issues.
Fixes bugs 3510336 and 3513352

Change-Id: Iaa47c9d7fd04fa5dd2700f55993ba2fd1a78fd70
This commit is contained in:
Jaikumar Ganesh
2011-03-04 13:49:37 -08:00
parent e0db177334
commit 6eb84ac6de
3 changed files with 18 additions and 28 deletions

View File

@@ -159,6 +159,7 @@ final class LocalBluetoothProfileManager {
} else if (mOppProfile != null) {
Log.w(TAG, "Warning: OPP profile was previously added but the UUID is now missing.");
}
mEventManager.registerProfileIntentReceiver();
// There is no local SDP record for HID and Settings app doesn't control PBAP
}
@@ -168,7 +169,7 @@ final class LocalBluetoothProfileManager {
private void addProfile(LocalBluetoothProfile profile,
String profileName, String stateChangedAction) {
mEventManager.addHandler(stateChangedAction, new StateChangedHandler(profile));
mEventManager.addProfileHandler(stateChangedAction, new StateChangedHandler(profile));
mProfileNameMap.put(profileName, profile);
}