Skip to content

Commit 68c7cee

Browse files
yuxizhebytemain
authored andcommitted
fix: remove networktype requirement
maybe fix: fluttercommunity#129 But I don't think its a good solution... 馃
1 parent 0f0fc42 commit 68c7cee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

android/src/main/java/vn/hunghd/flutterdownloader/FlutterDownloaderPlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ private WorkRequest buildRequest(String url, String savedDir, String filename, S
117117
WorkRequest request = new OneTimeWorkRequest.Builder(DownloadWorker.class)
118118
.setConstraints(new Constraints.Builder()
119119
.setRequiresStorageNotLow(requiresStorageNotLow)
120-
.setRequiredNetworkType(NetworkType.CONNECTED)
120+
// fix https://github.com/fluttercommunity/flutter_downloader/issues/129
121+
//.setRequiredNetworkType(NetworkType.CONNECTED)
121122
.build())
122123
.addTag(TAG)
123124
.setBackoffCriteria(BackoffPolicy.EXPONENTIAL, 5, TimeUnit.SECONDS)

0 commit comments

Comments
 (0)