Bring back the MDN (phone number) status even if there's no voice.
Needed for carrier customer support purposes. Bug: 3351493 Change "My phone number" string to "MDN". Change-Id: Icee0f97348034a9fb7f79a3c48868d5f74edabb1
This commit is contained in:
@@ -1430,8 +1430,10 @@
|
||||
<string name="status_imei">IMEI</string>
|
||||
<!-- Do not translate. About phone, status item title -->
|
||||
<string name="status_imei_sv">IMEI SV</string>
|
||||
<!-- About phone, status item title. The phone number of the current device.-->
|
||||
<string name="status_number">My phone number</string>
|
||||
<!-- About tablet, status item title. The Mobile Directory Number [CHAR LIMIT=30] -->
|
||||
<string name="status_number" product="tablet">MDN</string>
|
||||
<!-- About phone, status item title. The phone number of the current device [CHAR LIMIT=30] -->
|
||||
<string name="status_number" product="default">My phone number</string>
|
||||
<!-- About phone, status item title. The phone MIN number of the current device.-->
|
||||
<string name="status_min_number">MIN</string>
|
||||
<!-- About phone, status item title. The phone PRL Version of the current device.-->
|
||||
|
@@ -222,10 +222,6 @@ public class Status extends PreferenceActivity {
|
||||
removePreferenceFromScreen(KEY_MIN_NUMBER);
|
||||
}
|
||||
|
||||
// Remove the phone number preference if the device is not voice capable.
|
||||
if (!Utils.isVoiceCapable(this)) {
|
||||
removePreferenceFromScreen(KEY_PHONE_NUMBER);
|
||||
} else {
|
||||
String rawNumber = mPhone.getLine1Number(); // may be null or empty
|
||||
String formattedNumber = null;
|
||||
if (!TextUtils.isEmpty(rawNumber)) {
|
||||
@@ -233,7 +229,6 @@ public class Status extends PreferenceActivity {
|
||||
}
|
||||
// If formattedNumber is null or empty, it'll display as "Unknown".
|
||||
setSummaryText(KEY_PHONE_NUMBER, formattedNumber);
|
||||
}
|
||||
|
||||
mPhoneStateReceiver = new PhoneStateIntentReceiver(this, mHandler);
|
||||
mPhoneStateReceiver.notifySignalStrength(EVENT_SIGNAL_STRENGTH_CHANGED);
|
||||
|
Reference in New Issue
Block a user