1
0
mirror of https://github.com/etesync/android synced 2025-02-02 19:01:06 +00:00

Bug fixes

* fix a bug in handling TXT records (hopefully fixes #383)
* fix invalid translation strings
This commit is contained in:
rfc2822 2014-11-29 22:52:51 +01:00
parent e98f0bd1ed
commit 9452204f5c
2 changed files with 5 additions and 4 deletions

View File

@ -111,7 +111,7 @@
<string name="setup_add_account">Afegir compte</string> <string name="setup_add_account">Afegir compte</string>
<string name="setup_querying_server">Contactant servidor. Espereu sisuplau.</string> <string name="setup_querying_server">Contactant servidor. Espereu sisuplau.</string>
<string name="setup_what_to_sync">Quines col·leccions s'han de sincronitzar?</string> <string name="setup_what_to_sync">Quines col·leccions s\'han de sincronitzar?</string>
<string name="setup_address_books">Llibretes de contactes</string> <string name="setup_address_books">Llibretes de contactes</string>
<string name="setup_address_book">Llibreta de contactes</string> <string name="setup_address_book">Llibreta de contactes</string>
<string name="setup_calendars">Calendaris</string> <string name="setup_calendars">Calendaris</string>
@ -136,7 +136,7 @@
<string name="settings_network_logging">Registra el tràfic de xarxa</string> <string name="settings_network_logging">Registra el tràfic de xarxa</string>
<string name="settings_network_logging_enabled">Tot el tràfic de xarxa es reigstra (mode depuració)</string> <string name="settings_network_logging_enabled">Tot el tràfic de xarxa es reigstra (mode depuració)</string>
<string name="settings_network_logging_disabled">No es registra el tràfic de xarxa</string> <string name="settings_network_logging_disabled">No es registra el tràfic de xarxa</string>
<string name="settings_report_an_issue">Informa d'un error</string> <string name="settings_report_an_issue">Informa d\'un error</string>
</resources> </resources>

View File

@ -202,12 +202,14 @@ public class DavResourceFinder implements Closeable {
records = new Lookup(name, Type.TXT).run(); records = new Lookup(name, Type.TXT).run();
if (records != null && records.length >= 1) { if (records != null && records.length >= 1) {
TXTRecord txt = (TXTRecord)records[0]; TXTRecord txt = (TXTRecord)records[0];
for (String segment : (String[])txt.getStrings().toArray()) for (Object o : txt.getStrings().toArray()) {
String segment = (String)o;
if (segment.startsWith("path=")) { if (segment.startsWith("path=")) {
path = segment.substring(5); path = segment.substring(5);
Log.d(TAG, "Found initial context path for " + serviceName + " at " + domain + " -> " + path); Log.d(TAG, "Found initial context path for " + serviceName + " at " + domain + " -> " + path);
break; break;
} }
}
} }
} }
} catch (TextParseException e) { } catch (TextParseException e) {
@ -234,7 +236,6 @@ public class DavResourceFinder implements Closeable {
if (initialURL != null) { if (initialURL != null) {
// determine base URL (host name and initial context path) // determine base URL (host name and initial context path)
WebDavResource base = new WebDavResource(httpClient, WebDavResource base = new WebDavResource(httpClient,
//new URI(URIUtils.ensureTrailingSlash(serverInfo.getBaseURI())),
initialURL, initialURL,
serverInfo.getUserName(), serverInfo.getPassword(), serverInfo.isAuthPreemptive()); serverInfo.getUserName(), serverInfo.getPassword(), serverInfo.isAuthPreemptive());