aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2009-06-21 11:46:54 +0000
committerKenny Root <kenny@the-b.org>2009-06-21 11:46:54 +0000
commit675fc94ffa751c609f271ddc1eeca1c469d49f70 (patch)
tree07ef8e0e57d1b2619a8660ea65e5571a5e798fbc
parent9bef0b9f5741aef298ddabc7a3c27a0c287fbd96 (diff)
downloadconnectbot-675fc94ffa751c609f271ddc1eeca1c469d49f70.tar.gz
connectbot-675fc94ffa751c609f271ddc1eeca1c469d49f70.tar.bz2
connectbot-675fc94ffa751c609f271ddc1eeca1c469d49f70.zip
Restrict numeric preferences to numeric entry.
git-svn-id: https://connectbot.googlecode.com/svn/trunk/connectbot@322 df292f66-193f-0410-a5fc-6d59da041ff2
-rw-r--r--res/xml/host_prefs.xml2
-rw-r--r--res/xml/preferences.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/res/xml/host_prefs.xml b/res/xml/host_prefs.xml
index 22b056c..490eeb0 100644
--- a/res/xml/host_prefs.xml
+++ b/res/xml/host_prefs.xml
@@ -94,7 +94,7 @@
<EditTextPreference
android:key="port"
android:title="@string/hostpref_port_title"
- android:singleLine="true"
+ android:numeric="integer"
/>
</PreferenceCategory>
diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml
index ef2ad49..ec75d48 100644
--- a/res/xml/preferences.xml
+++ b/res/xml/preferences.xml
@@ -51,7 +51,7 @@
android:title="@string/pref_scrollback_title"
android:summary="@string/pref_scrollback_summary"
android:defaultValue="140"
- android:singleLine="true"
+ android:numeric="integer"
/>
</PreferenceCategory>