mirror of
https://github.com/etesync/android
synced 2025-01-11 16:21:10 +00:00
Version 0.9.1.1
* resource detection: ignore 404 errors when trying context paths * work around crash when edit field is changed while there is no acitivity (???!) * dav4android: fix calendar-multiget request
This commit is contained in:
parent
0f0acd62a3
commit
e5ebf10dc0
@ -18,7 +18,7 @@ android {
|
|||||||
targetSdkVersion 22
|
targetSdkVersion 22
|
||||||
|
|
||||||
versionCode 84
|
versionCode 84
|
||||||
versionName "0.9.1"
|
versionName "0.9.1.1"
|
||||||
|
|
||||||
buildConfigField "java.util.Date", "buildTime", "new java.util.Date()"
|
buildConfigField "java.util.Date", "buildTime", "new java.util.Date()"
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,7 @@ import at.bitfire.dav4android.DavResource;
|
|||||||
import at.bitfire.dav4android.UrlUtils;
|
import at.bitfire.dav4android.UrlUtils;
|
||||||
import at.bitfire.dav4android.exception.DavException;
|
import at.bitfire.dav4android.exception.DavException;
|
||||||
import at.bitfire.dav4android.exception.HttpException;
|
import at.bitfire.dav4android.exception.HttpException;
|
||||||
|
import at.bitfire.dav4android.exception.NotFoundException;
|
||||||
import at.bitfire.dav4android.property.AddressbookDescription;
|
import at.bitfire.dav4android.property.AddressbookDescription;
|
||||||
import at.bitfire.dav4android.property.AddressbookHomeSet;
|
import at.bitfire.dav4android.property.AddressbookHomeSet;
|
||||||
import at.bitfire.dav4android.property.CalendarColor;
|
import at.bitfire.dav4android.property.CalendarColor;
|
||||||
@ -413,20 +414,23 @@ public class DavResourceFinder {
|
|||||||
paths.add("/");
|
paths.add("/");
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String path : paths) {
|
for (String path : paths)
|
||||||
if (!TextUtils.isEmpty(scheme) && !TextUtils.isEmpty(fqdn) && port != null && paths != null) {
|
try {
|
||||||
HttpUrl initialContextPath = new HttpUrl.Builder()
|
if (!TextUtils.isEmpty(scheme) && !TextUtils.isEmpty(fqdn) && port != null && paths != null) {
|
||||||
.scheme(scheme)
|
HttpUrl initialContextPath = new HttpUrl.Builder()
|
||||||
.host(fqdn).port(port)
|
.scheme(scheme)
|
||||||
.encodedPath(path)
|
.host(fqdn).port(port)
|
||||||
.build();
|
.encodedPath(path)
|
||||||
|
.build();
|
||||||
|
|
||||||
log.info("Trying to determine principal from initial context path=" + initialContextPath);
|
log.info("Trying to determine principal from initial context path=" + initialContextPath);
|
||||||
HttpUrl principal = getCurrentUserPrincipal(initialContextPath);
|
HttpUrl principal = getCurrentUserPrincipal(initialContextPath);
|
||||||
if (principal != null)
|
if (principal != null)
|
||||||
return principal;
|
return principal;
|
||||||
|
}
|
||||||
|
} catch(NotFoundException e) {
|
||||||
|
log.warn("No resource found", e);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
package at.bitfire.davdroid.ui.setup;
|
package at.bitfire.davdroid.ui.setup;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
import android.app.DialogFragment;
|
import android.app.DialogFragment;
|
||||||
import android.app.Fragment;
|
import android.app.Fragment;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@ -156,7 +157,9 @@ public class LoginURLFragment extends Fragment implements TextWatcher {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||||
getActivity().invalidateOptionsMenu();
|
Activity activity = getActivity();
|
||||||
|
if (activity != null)
|
||||||
|
activity.invalidateOptionsMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 6a83ed5a370f92fb8d8440a6e4a06d9e2fa3dfcd
|
Subproject commit b77404b82c6bae193754344ecb00b7e4be88797f
|
Loading…
Reference in New Issue
Block a user