Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Bug 1839075 - Corrects timeout duration for CopyDownloadFeature #4737

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import java.util.concurrent.TimeUnit
* - temporarily cache the downloaded resources
* - copy the resource to the device clipboard.
*
* with a 1 second timeout to ensure a smooth UX.
* with a 1 minute timeout to ensure a smooth UX.
*
* To finish the process in this small timeframe the feature is recommended to be used only for images.
*
Expand Down Expand Up @@ -62,7 +62,7 @@ class CopyDownloadFeature(
/**
* At most time to allow for the file to be downloaded.
*/
private val operationTimeoutMs by lazy { TimeUnit.MINUTES.toMinutes(1) }
private val operationTimeoutMs by lazy { TimeUnit.MINUTES.toMillis(1) }

override fun start() {
scope = store.flowScoped { flow ->
Expand Down
Loading