mirror of
https://github.com/owncloud/android-library.git
synced 2026-08-22 13:52:55 +00:00
Use the same ownCloudClient across the whole login process
This commit is contained in:
-6
@@ -43,10 +43,4 @@ class OCServerInfoService : ServerInfoService {
|
|||||||
client: OwnCloudClient
|
client: OwnCloudClient
|
||||||
): RemoteOperationResult<OwnCloudVersion> =
|
): RemoteOperationResult<OwnCloudVersion> =
|
||||||
GetRemoteStatusOperation().execute(client)
|
GetRemoteStatusOperation().execute(client)
|
||||||
|
|
||||||
private fun createClientFromPath(path: String): OwnCloudClient {
|
|
||||||
val client = OwnCloudClient(Uri.parse(path)).apply { credentials = getAnonymousCredentials() }
|
|
||||||
OwnCloudClientFactory.retriveCookisFromMiddleware(client)
|
|
||||||
return client
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user