Skip to content

Commit a1f1fe8

Browse files
DownloadFileOperation uses now NextcloudClient
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
1 parent d279a0d commit a1f1fe8

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

app/src/main/java/com/owncloud/android/operations/DownloadFileOperation.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
import android.webkit.MimeTypeMap;
1919

2020
import com.nextcloud.client.account.User;
21+
import com.nextcloud.common.NextcloudClient;
2122
import com.nextcloud.utils.extensions.ContextExtensionsKt;
23+
import com.nextcloud.utils.extensions.OwnCloudClientExtensionsKt;
2224
import com.owncloud.android.R;
2325
import com.owncloud.android.datamodel.ArbitraryDataProviderImpl;
2426
import com.owncloud.android.datamodel.FileDataStorageManager;
@@ -42,7 +44,6 @@
4244
import java.lang.ref.WeakReference;
4345
import java.nio.file.Files;
4446
import java.util.HashSet;
45-
import java.util.Iterator;
4647
import java.util.Set;
4748
import java.util.concurrent.atomic.AtomicBoolean;
4849

@@ -205,7 +206,8 @@ protected RemoteOperationResult run(OwnCloudClient client) {
205206
dataTransferListeners.forEach(downloadOperation::addDatatransferProgressListener);
206207
}
207208

208-
result = downloadOperation.execute(client);
209+
NextcloudClient nextcloudClient = OwnCloudClientExtensionsKt.toNextcloudClient(client, operationContext);
210+
result = downloadOperation.execute(nextcloudClient);
209211

210212

211213

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
androidCommonLibraryVersion = "0.31.0"
66
androidGifDrawableVersion = "1.2.30"
77
androidImageCropperVersion = "4.7.0"
8-
androidLibraryVersion = "b711becb0fe4fa3b09a0ea83a498579310cc8e69"
8+
androidLibraryVersion = "08bd486478f27fdd839431bf1a78b29ec9308689"
99
androidPluginVersion = '8.13.2'
1010
androidsvgVersion = "1.4"
1111
androidxMediaVersion = "1.5.1"

gradle/verification-metadata.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19515,6 +19515,17 @@
1951519515
<sha256 value="1766b0b02fe18a2f24687a75e350c157eeb1bcb5a5f13b0c9bb01d88709e842f" origin="Generated by Gradle" reason="Artifact is not signed"/>
1951619516
</artifact>
1951719517
</component>
19518+
<component group="com.github.nextcloud" name="android-library"
19519+
version="08bd486478f27fdd839431bf1a78b29ec9308689">
19520+
<artifact name="android-library-08bd486478f27fdd839431bf1a78b29ec9308689.aar">
19521+
<sha256 value="b2887e0c9f8ff1112e39a43f9341d5738c5d0180544b665a8df7731b7b9ea8e4"
19522+
origin="Generated by Gradle" reason="Artifact is not signed" />
19523+
</artifact>
19524+
<artifact name="android-library-08bd486478f27fdd839431bf1a78b29ec9308689.module">
19525+
<sha256 value="16e10011c4e370870570943f137589f391160bcf907915ab8de5b3b009795160"
19526+
origin="Generated by Gradle" reason="Artifact is not signed" />
19527+
</artifact>
19528+
</component>
1951819529
<component group="com.github.nextcloud" name="android-library" version="0bc996e6b6">
1951919530
<artifact name="android-library-0bc996e6b6.aar">
1952019531
<sha256 value="944bc1de6496e567dd53573007a81102788f869d6ad83f6690f3cb4a156e1280" origin="Generated by Gradle" reason="Artifact is not signed"/>

0 commit comments

Comments
 (0)