To addOnSubscriptionsChangedListener and
removeOnSubscriptionsChangedListener.
Bug:
18984103
Change-Id: I6636905093812af89c1c3702840e44c8c5ea891f
// 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;