Browse Source

Fix server timeout setting parsing.

pull/11/head
Eric Kok 12 years ago
parent
commit
25c088907c
  1. 1
      core/res/xml/pref_server.xml
  2. 6
      core/src/org/transdroid/core/app/settings/ApplicationSettings.java

1
core/res/xml/pref_server.xml

@ -14,7 +14,6 @@ @@ -14,7 +14,6 @@
<EditTextPreference
android:key="server_address"
android:title="@string/pref_address"
android:summary="@string/pref_searchurl_info"
android:inputType="textUri" />
<EditTextPreference
android:key="server_port"

6
core/src/org/transdroid/core/app/settings/ApplicationSettings.java

@ -68,9 +68,9 @@ public class ApplicationSettings { @@ -68,9 +68,9 @@ public class ApplicationSettings {
prefs.getString("server_pass_" + order, null), prefs.getString("server_extrapass_" + order, null),
OS.fromCode(prefs.getString("server_os_" + order, null)), prefs.getString(
"server_downloaddir_" + order, null), prefs.getString("server_ftpurl_" + order, null),
prefs.getString("server_ftppass_" + order, null), prefs.getInt("server_timeout_" + order, 8),
prefs.getBoolean("server_alarmfinished_" + order, true), prefs.getBoolean("server_alarmnew_" + order,
false), false);
prefs.getString("server_ftppass_" + order, null), Integer.parseInt(prefs.getString("server_timeout_"
+ order, "8")), prefs.getBoolean("server_alarmfinished_" + order, true), prefs.getBoolean(
"server_alarmnew_" + order, false), false);
}
/**

Loading…
Cancel
Save