1
0
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:
Christian Schabesberger 2021-08-23 12:50:15 +02:00
parent 351efb7bf2
commit 39b1fce7f6
2 changed files with 14 additions and 0 deletions

View File

@ -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())
}
}

View File

@ -67,6 +67,7 @@ public class OwnCloudClient extends HttpClient {
private Uri mBaseUri;
private OwnCloudVersion mVersion = null;
private OwnCloudAccount mAccount;
private ConnectionValidator mConnectionValidator;
private SingleSessionManager mSingleSessionManager = null;
@ -83,6 +84,7 @@ public class OwnCloudClient extends HttpClient {
clearCredentials();
clearCookies();
mConnectionValidator = new ConnectionValidator(this);
}
public void clearCredentials() {