Merge "Fix Text of VoLTE setting cannot be updated when SIM state is changed" into stage-aosp-master

This commit is contained in:
TreeHugger Robot
2021-09-09 09:47:14 +00:00
committed by Android (Google) Code Review

View File

@@ -77,9 +77,6 @@ public class Enhanced4gBasePreferenceController extends TelephonyTogglePreferenc
mTelephonyCallback = new PhoneCallStateTelephonyCallback();
}
if (mSubId == subId) {
return this;
}
mSubId = subId;
final PersistableBundle carrierConfig = getCarrierConfigForSubId(subId);
if (carrierConfig == null) {
@@ -136,7 +133,7 @@ public class Enhanced4gBasePreferenceController extends TelephonyTogglePreferenc
@Override
public void onStart() {
if (!isModeMatched() || (mTelephonyCallback == null)) {
if (mTelephonyCallback == null) {
return;
}
mTelephonyCallback.register(mContext, mSubId);