Use TextUtils.isEmpty to simplify code.

Change-Id: I189c7c124419373c747c42504e656343728d0a15
This commit is contained in:
Wink Saville
2010-11-18 16:07:42 -08:00
parent a332678135
commit a0d712694a

View File

@@ -626,7 +626,7 @@ final class CdmaServiceStateTracker extends ServiceStateTracker {
// mOperatorAlphaLong contains the ERI text
String plmn = ss.getOperatorAlphaLong();
if (!TextUtils.equals(plmn, curPlmn)) {
boolean showPlmn = (plmn != null) && !TextUtils.equals(plmn, "");
boolean showPlmn = !TextUtils.isEmpty(plmn);
Log.d(LOG_TAG,
String.format("updateSpnDisplay: changed sending intent" +
" showPlmn='%b' plmn='%s'", showPlmn, plmn));