Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 39b1fce

Browse files
committed
init connectionvalidator
1 parent 351efb7 commit 39b1fce

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.owncloud.android.lib.common
2+
3+
import timber.log.Timber
4+
5+
class ConnectionValidator (
6+
private val ocClient: OwnCloudClient
7+
) {
8+
9+
fun dosomething() {
10+
Timber.d(ocClient.toString())
11+
}
12+
}

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/OwnCloudClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public class OwnCloudClient extends HttpClient {
6767
private Uri mBaseUri;
6868
private OwnCloudVersion mVersion = null;
6969
private OwnCloudAccount mAccount;
70+
private ConnectionValidator mConnectionValidator;
7071

7172
private SingleSessionManager mSingleSessionManager = null;
7273

@@ -83,6 +84,7 @@ public OwnCloudClient(Uri baseUri) {
8384

8485
clearCredentials();
8586
clearCookies();
87+
mConnectionValidator = new ConnectionValidator(this);
8688
}
8789

8890
public void clearCredentials() {

0 commit comments

Comments
 (0)