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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user