From e8885c320e9a411ad86361c092eb9c92fd8f4d66 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Tue, 30 Jan 2024 14:22:16 +0100 Subject: [PATCH] wip Signed-off-by: tobiasKaminsky --- .../lib/common/operations/RemoteOperation.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/library/src/main/java/com/owncloud/android/lib/common/operations/RemoteOperation.java b/library/src/main/java/com/owncloud/android/lib/common/operations/RemoteOperation.java index e2e9179f6b..2136c3fa80 100644 --- a/library/src/main/java/com/owncloud/android/lib/common/operations/RemoteOperation.java +++ b/library/src/main/java/com/owncloud/android/lib/common/operations/RemoteOperation.java @@ -297,17 +297,21 @@ public Thread execute(Account account, Context context, mContext = context.getApplicationContext(); mCallerActivity = null; mClient = null; // the client instance will be created from - // mAccount and mContext in the runnerThread to create below - + // mAccount and mContext in the runnerThread to create below + mListener = listener; - + mListenerHandler = listenerHandler; - + Thread runnerThread = new Thread(this); runnerThread.start(); return runnerThread; } + public OwnCloudClient getClient() { + return mClient; + } + /** * This is a transitional wrapper around * {@link #execute(Account, Context, OnRemoteOperationListener, Handler)}