mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
init connectionvalidator
This commit is contained in:
parent
351efb7bf2
commit
39b1fce7f6
@ -0,0 +1,12 @@
|
|||||||
|
package com.owncloud.android.lib.common
|
||||||
|
|
||||||
|
import timber.log.Timber
|
||||||
|
|
||||||
|
class ConnectionValidator (
|
||||||
|
private val ocClient: OwnCloudClient
|
||||||
|
) {
|
||||||
|
|
||||||
|
fun dosomething() {
|
||||||
|
Timber.d(ocClient.toString())
|
||||||
|
}
|
||||||
|
}
|
@ -67,6 +67,7 @@ public class OwnCloudClient extends HttpClient {
|
|||||||
private Uri mBaseUri;
|
private Uri mBaseUri;
|
||||||
private OwnCloudVersion mVersion = null;
|
private OwnCloudVersion mVersion = null;
|
||||||
private OwnCloudAccount mAccount;
|
private OwnCloudAccount mAccount;
|
||||||
|
private ConnectionValidator mConnectionValidator;
|
||||||
|
|
||||||
private SingleSessionManager mSingleSessionManager = null;
|
private SingleSessionManager mSingleSessionManager = null;
|
||||||
|
|
||||||
@ -83,6 +84,7 @@ public class OwnCloudClient extends HttpClient {
|
|||||||
|
|
||||||
clearCredentials();
|
clearCredentials();
|
||||||
clearCookies();
|
clearCookies();
|
||||||
|
mConnectionValidator = new ConnectionValidator(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void clearCredentials() {
|
public void clearCredentials() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user