OSDN Git Service

Fixed crash in sim settings due to wrong toString() call.
authorSanket Padawe <sanketpadawe@google.com>
Tue, 2 Dec 2014 18:52:22 +0000 (10:52 -0800)
committerSanket Padawe <sanketpadawe@google.com>
Tue, 2 Dec 2014 18:54:11 +0000 (18:54 +0000)
Bug: 18589605
Change-Id: I2ae756f113904e1325ad3cc686cee0300cbd71e4

src/com/android/settings/sim/SimSettings.java

index 3869cd3..69dbbe0 100644 (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))));