1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-07-23 01:45:50 +00:00

Use the same ownCloudClient across the whole login process

This commit is contained in:
Abel García de Prada 2020-11-19 19:05:48 +01:00
parent 2a23a1c773
commit 1194b9a412

View File

@ -43,10 +43,4 @@ class OCServerInfoService : ServerInfoService {
client: OwnCloudClient
): RemoteOperationResult<OwnCloudVersion> =
GetRemoteStatusOperation().execute(client)
private fun createClientFromPath(path: String): OwnCloudClient {
val client = OwnCloudClient(Uri.parse(path)).apply { credentials = getAnonymousCredentials() }
OwnCloudClientFactory.retriveCookisFromMiddleware(client)
return client
}
}