Skip to content

Commit

Permalink
Replace OwnCloudClient instances
Browse files Browse the repository at this point in the history
Signed-off-by: ZetaTom <70907959+ZetaTom@users.noreply.github.com>
  • Loading branch information
ZetaTom committed Jan 30, 2024
1 parent 6fa36b1 commit c6580de
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,13 @@ class ChooseTemplateDialogFragment : DialogFragment(), View.OnClickListener, Tem
override fun doInBackground(vararg params: Void): String {
return try {
val client = clientFactory!!.create(user)
val nextcloudClient = clientFactory.createNextcloudClient(user)
val result = DirectEditingCreateFileRemoteOperation(
path,
creator!!.editor,
creator.id,
template.title
).execute(client)
).execute(nextcloudClient)
if (!result.isSuccess) {
return ""
}
Expand Down Expand Up @@ -367,7 +368,7 @@ class ChooseTemplateDialogFragment : DialogFragment(), View.OnClickListener, Tem

override fun doInBackground(vararg voids: Void): TemplateList {
return try {
val client = clientFactory!!.create(user)
val client = clientFactory!!.createNextcloudClient(user)
val result = DirectEditingObtainListOfTemplatesRemoteOperation(
creator!!.editor,
creator.id
Expand Down

0 comments on commit c6580de

Please sign in to comment.