summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/values/arrays.xml19
-rw-r--r--res/xml/apn_editor.xml6
2 files changed, 25 insertions, 0 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 6d8ca32..6b8214c 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -291,4 +291,23 @@
<item>中文 (繁體)</item>
</string-array>
+ <!-- Authentication Types used in APN editor -->
+ <string-array name="apn_auth_entries">
+ <item>None</item>
+ <item>PAP</item>
+ <item>CHAP</item>
+ <item>PAP or CHAP</item>
+ </string-array>
+
+ <string-array translatable="false" name="apn_auth_values">
+ <!-- Do not translate. -->
+ <item>0</item>
+ <!-- Do not translate. -->
+ <item>1</item>
+ <!-- Do not translate. -->
+ <item>2</item>
+ <!-- Do not translate. -->
+ <item>3</item>
+ </string-array>
+
</resources>
diff --git a/res/xml/apn_editor.xml b/res/xml/apn_editor.xml
index 4ff801f..3835a2c 100644
--- a/res/xml/apn_editor.xml
+++ b/res/xml/apn_editor.xml
@@ -101,6 +101,12 @@
android:singleLine="true"
android:inputType="number"
/>
+ <ListPreference
+ android:title="@string/apn_auth_type"
+ android:key="auth_type"
+ android:entries="@array/apn_auth_entries"
+ android:entryValues="@array/apn_auth_values"
+ />
<EditTextPreference
android:title="@string/apn_type"
android:dialogTitle="@string/apn_type"