Loading packages/Keyguard/src/com/android/keyguard/CarrierText.java +1 −23 Original line number Diff line number Diff line Loading @@ -33,7 +33,6 @@ import java.util.Locale; public class CarrierText extends TextView { private static CharSequence mSeparator; protected Context mContext; private LockPatternUtils mLockPatternUtils; Loading Loading @@ -93,7 +92,6 @@ public class CarrierText extends TextView { public CarrierText(Context context, AttributeSet attrs) { super(context, attrs); mContext = context; mLockPatternUtils = new LockPatternUtils(mContext); boolean useAllCaps = mContext.getResources().getBoolean(R.bool.kg_use_all_caps); setTransformationMethod(new CarrierTextTransformationMethod(mContext, useAllCaps)); Loading Loading @@ -149,30 +147,10 @@ public class CarrierText extends TextView { CharSequence plmn, CharSequence spn) { CharSequence carrierText = null; StatusMode status = getStatusForIccState(simState); String localPlmn = null; String localSpn = null; if (mContext.getResources().getBoolean(R.bool.config_monitor_locale_change)) { if (plmn != null) { localPlmn = android.util.NativeTextHelper.getInternalLocalString(mContext, plmn.toString(), R.array.origin_carrier_names, R.array.locale_carrier_names); } if (spn != null) { localSpn = android.util.NativeTextHelper.getInternalLocalString(mContext, spn.toString(), R.array.origin_carrier_names, R.array.locale_carrier_names); } } switch (status) { case Normal: if (mContext.getResources().getBoolean(R.bool.config_monitor_locale_change)) { carrierText = concatenate(localPlmn, localSpn); } else { carrierText = concatenate(plmn, spn); } break; case SimNotReady: Loading Loading
packages/Keyguard/src/com/android/keyguard/CarrierText.java +1 −23 Original line number Diff line number Diff line Loading @@ -33,7 +33,6 @@ import java.util.Locale; public class CarrierText extends TextView { private static CharSequence mSeparator; protected Context mContext; private LockPatternUtils mLockPatternUtils; Loading Loading @@ -93,7 +92,6 @@ public class CarrierText extends TextView { public CarrierText(Context context, AttributeSet attrs) { super(context, attrs); mContext = context; mLockPatternUtils = new LockPatternUtils(mContext); boolean useAllCaps = mContext.getResources().getBoolean(R.bool.kg_use_all_caps); setTransformationMethod(new CarrierTextTransformationMethod(mContext, useAllCaps)); Loading Loading @@ -149,30 +147,10 @@ public class CarrierText extends TextView { CharSequence plmn, CharSequence spn) { CharSequence carrierText = null; StatusMode status = getStatusForIccState(simState); String localPlmn = null; String localSpn = null; if (mContext.getResources().getBoolean(R.bool.config_monitor_locale_change)) { if (plmn != null) { localPlmn = android.util.NativeTextHelper.getInternalLocalString(mContext, plmn.toString(), R.array.origin_carrier_names, R.array.locale_carrier_names); } if (spn != null) { localSpn = android.util.NativeTextHelper.getInternalLocalString(mContext, spn.toString(), R.array.origin_carrier_names, R.array.locale_carrier_names); } } switch (status) { case Normal: if (mContext.getResources().getBoolean(R.bool.config_monitor_locale_change)) { carrierText = concatenate(localPlmn, localSpn); } else { carrierText = concatenate(plmn, spn); } break; case SimNotReady: Loading