Allow alternate string to be used for min_number
"MSID" can be shown instead of "MIN" if config_msid_enable is set to true. Change-Id: I6d072a5db9a5b46b17a57257221e109ba9a86698
This commit is contained in:
@@ -17,4 +17,8 @@
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<string name="additional_system_update" translatable="false"></string>
|
||||
<string name="additional_system_update_menu" translatable="false"></string>
|
||||
|
||||
<!-- If false, MIN is displayed. If true, MSID is displayed. -->
|
||||
<bool name="config_msid_enable" translatable="false">false</bool>
|
||||
|
||||
</resources>
|
||||
|
@@ -1255,6 +1255,8 @@
|
||||
<string name="status_number">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 MSID number of the current device.-->
|
||||
<string name="status_msid_number">MSID</string>
|
||||
<!-- About phone, status item title. The phone PRL Version of the current device.-->
|
||||
<string name="status_prl_version">PRL Version</string>
|
||||
<!-- About phone, status item title. The phone MEID number of the current device.-->
|
||||
|
@@ -191,6 +191,9 @@ public class Status extends PreferenceActivity {
|
||||
if (mPhone.getPhoneName().equals("CDMA")) {
|
||||
setSummaryText("meid_number", mPhone.getMeid());
|
||||
setSummaryText("min_number", mPhone.getCdmaMin());
|
||||
if (getResources().getBoolean(R.bool.config_msid_enable)) {
|
||||
findPreference("min_number").setTitle(R.string.status_msid_number);
|
||||
}
|
||||
setSummaryText("prl_version", mPhone.getCdmaPrlVersion());
|
||||
|
||||
// device is not GSM/UMTS, do not display GSM/UMTS features
|
||||
|
Reference in New Issue
Block a user