Merge "Fix wrong summary string show on the network page." into tm-dev am: f6ea9c99b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/18603834 Change-Id: I56919305722783a24bd68c0e378cc1d272a6f2aa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -274,8 +274,12 @@ public class SubscriptionsPreferenceController extends AbstractPreferenceControl
|
|||||||
String result = mSubsPrefCtrlInjector.getNetworkType(
|
String result = mSubsPrefCtrlInjector.getNetworkType(
|
||||||
mContext, mConfig, mTelephonyDisplayInfo, subId, isCarrierNetworkActive);
|
mContext, mConfig, mTelephonyDisplayInfo, subId, isCarrierNetworkActive);
|
||||||
if (mSubsPrefCtrlInjector.isActiveCellularNetwork(mContext) || isCarrierNetworkActive) {
|
if (mSubsPrefCtrlInjector.isActiveCellularNetwork(mContext) || isCarrierNetworkActive) {
|
||||||
|
if (result.isEmpty()) {
|
||||||
|
result = mContext.getString(R.string.mobile_data_connection_active);
|
||||||
|
} else {
|
||||||
result = mContext.getString(R.string.preference_summary_default_combination,
|
result = mContext.getString(R.string.preference_summary_default_combination,
|
||||||
mContext.getString(R.string.mobile_data_connection_active), result);
|
mContext.getString(R.string.mobile_data_connection_active), result);
|
||||||
|
}
|
||||||
} else if (!isDataInService) {
|
} else if (!isDataInService) {
|
||||||
result = mContext.getString(R.string.mobile_data_no_connection);
|
result = mContext.getString(R.string.mobile_data_no_connection);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user