Loading src/java/com/android/internal/telephony/data/DataNetwork.java +4 −2 Original line number Diff line number Diff line Loading @@ -1082,9 +1082,11 @@ public class DataNetwork extends StateMachine { private void registerForBandwidthUpdate() { int bandwidthEstimateSource = mDataConfigManager.getBandwidthEstimateSource(); if (bandwidthEstimateSource == BANDWIDTH_SOURCE_MODEM) { mPhone.mCi.unregisterForLceInfo(getHandler()); mPhone.mCi.registerForLceInfo( getHandler(), EVENT_BANDWIDTH_ESTIMATE_FROM_MODEM_CHANGED, null); } else if (bandwidthEstimateSource == BANDWIDTH_SOURCE_BANDWIDTH_ESTIMATOR) { mPhone.getLinkBandwidthEstimator().unregisterForBandwidthChanged(getHandler()); mPhone.getLinkBandwidthEstimator().registerForBandwidthChanged( getHandler(), EVENT_BANDWIDTH_ESTIMATE_FROM_BANDWIDTH_ESTIMATOR_CHANGED, null); } else { loge("Invalid bandwidth source configuration: " + bandwidthEstimateSource); } Loading Loading
src/java/com/android/internal/telephony/data/DataNetwork.java +4 −2 Original line number Diff line number Diff line Loading @@ -1082,9 +1082,11 @@ public class DataNetwork extends StateMachine { private void registerForBandwidthUpdate() { int bandwidthEstimateSource = mDataConfigManager.getBandwidthEstimateSource(); if (bandwidthEstimateSource == BANDWIDTH_SOURCE_MODEM) { mPhone.mCi.unregisterForLceInfo(getHandler()); mPhone.mCi.registerForLceInfo( getHandler(), EVENT_BANDWIDTH_ESTIMATE_FROM_MODEM_CHANGED, null); } else if (bandwidthEstimateSource == BANDWIDTH_SOURCE_BANDWIDTH_ESTIMATOR) { mPhone.getLinkBandwidthEstimator().unregisterForBandwidthChanged(getHandler()); mPhone.getLinkBandwidthEstimator().registerForBandwidthChanged( getHandler(), EVENT_BANDWIDTH_ESTIMATE_FROM_BANDWIDTH_ESTIMATOR_CHANGED, null); } else { loge("Invalid bandwidth source configuration: " + bandwidthEstimateSource); } Loading