summaryrefslogtreecommitdiffstats
path: root/src/com/android/bluetooth/hfp/HeadsetPhoneState.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/bluetooth/hfp/HeadsetPhoneState.java')
-rw-r--r--src/com/android/bluetooth/hfp/HeadsetPhoneState.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/bluetooth/hfp/HeadsetPhoneState.java b/src/com/android/bluetooth/hfp/HeadsetPhoneState.java
index 8d4e1eebb..ec9637570 100644
--- a/src/com/android/bluetooth/hfp/HeadsetPhoneState.java
+++ b/src/com/android/bluetooth/hfp/HeadsetPhoneState.java
@@ -93,12 +93,12 @@ class HeadsetPhoneState {
// to invoke onSubscriptionInfoChanged and which in turns calls
// loadInBackgroud.
mSubMgr = SubscriptionManager.from(mContext);
- mSubMgr.registerOnSubscriptionsChangedListener(mOnSubscriptionsChangedListener);
+ mSubMgr.addOnSubscriptionsChangedListener(mOnSubscriptionsChangedListener);
}
public void cleanup() {
listenForPhoneState(false);
- mSubMgr.unregisterOnSubscriptionsChangedListener(mOnSubscriptionsChangedListener);
+ mSubMgr.removeOnSubscriptionsChangedListener(mOnSubscriptionsChangedListener);
mTelephonyManager = null;
mStateMachine = null;