Skip to content

Commit

Permalink
Fixed: detekt issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitMaliDeveloper committed Dec 12, 2024
1 parent ca1dc46 commit 6bd519a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ class DownloadManagerMonitor @Inject constructor(
(
isQueuedForWiFiAndConnected(download) ||
isQueuedForNetwork(download) ||
(download.error == Error.WAITING_TO_RETRY || download.error == Error.PAUSED_UNKNOWN)
download.error == Error.WAITING_TO_RETRY ||
download.error == Error.PAUSED_UNKNOWN
) &&
NetworkUtils.isNetworkAvailable(context) &&
!download.pausedByUser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,8 @@ class DownloadMonitorService : Service() {
(
isQueuedForWiFiAndConnected(download) ||
isQueuedForNetwork(download) ||
download.error == Error.WAITING_TO_RETRY
download.error == Error.WAITING_TO_RETRY ||
download.error == Error.PAUSED_UNKNOWN
) &&
NetworkUtils.isNetworkAvailable(this) &&
!download.pausedByUser
Expand Down

0 comments on commit 6bd519a

Please sign in to comment.