Use TextUtils.isEmpty to simplify code.
Change-Id: I189c7c124419373c747c42504e656343728d0a15
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user