Fixed crash in sim settings due to wrong toString() call.

Bug: 18589605
Change-Id: I2ae756f113904e1325ad3cc686cee0300cbd71e4
This commit is contained in:
Sanket Padawe
2014-12-02 10:52:22 -08:00
parent 1dce16a61c
commit e06387ff5b

View File

@@ -450,11 +450,11 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
setTitle(String.format(getResources()
.getString(R.string.sim_editor_title), (mSlotId + 1)));
if (mSubInfoRecord != null) {
if (TextUtils.isEmpty(mSubInfoRecord.getNumber().toString())) {
if (TextUtils.isEmpty(mSubInfoRecord.getNumber())) {
setSummary(mSubInfoRecord.getDisplayName());
} else {
setSummary(mSubInfoRecord.getDisplayName() + " - " +
mSubInfoRecord.getNumber().toString());
mSubInfoRecord.getNumber());
setEnabled(true);
}
setIcon(new BitmapDrawable(res, (mSubInfoRecord.createIconBitmap(mContext))));