Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
AccountManager
Commits
87f5aee2
Commit
87f5aee2
authored
Oct 02, 2019
by
Nihar Thakkar
Committed by
Romain Hunault
Oct 02, 2019
Browse files
Fix #30: Fix bug where editing of contacts was not possible for OAuth accounts
parent
914afc8f
Pipeline
#48455
passed with stage
in 4 minutes and 49 seconds
Changes
1
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/accountmanager/syncadapter/SyncManager.kt
View file @
87f5aee2
...
...
@@ -311,7 +311,7 @@ abstract class SyncManager<ResourceType: LocalResource<*>, out CollectionType: L
}
val
fileName
=
local
.
fileName
!!
useRemote
(
DavResource
(
httpClient
.
okHttpClient
,
collectionURL
.
newBuilder
().
addPathSegment
(
fileName
).
build
()))
{
remote
->
useRemote
(
DavResource
(
httpClient
.
okHttpClient
,
collectionURL
.
newBuilder
().
addPathSegment
(
fileName
).
build
()
,
accountSettings
.
credentials
().
authState
?.
accessToken
))
{
remote
->
// generate entity to upload (VCard, iCal, whatever)
val
body
=
prepareUpload
(
local
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment