Merge "Show one name if both plmn and spn are equal" into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ab1e241d38
@@ -233,7 +233,11 @@ public class CarrierText extends TextView {
|
||||
final boolean plmnValid = !TextUtils.isEmpty(plmn);
|
||||
final boolean spnValid = !TextUtils.isEmpty(spn);
|
||||
if (plmnValid && spnValid) {
|
||||
return new StringBuilder().append(plmn).append(mSeparator).append(spn).toString();
|
||||
if (plmn.equals(spn)) {
|
||||
return plmn;
|
||||
} else {
|
||||
return new StringBuilder().append(plmn).append(mSeparator).append(spn).toString();
|
||||
}
|
||||
} else if (plmnValid) {
|
||||
return plmn;
|
||||
} else if (spnValid) {
|
||||
|
||||
Reference in New Issue
Block a user