File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
app/src/main/java/com/duckduckgo/app/job Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -41,19 +41,14 @@ class AppConfigurationJobService : JobService() {
4141 Timber .i(" onStartJob" )
4242
4343 appConfigurationDownloader.downloadTask()
44- .subscribeOn(Schedulers .io())
45- .doOnComplete {
46- Timber .i(" Successfully downloaded all data" )
47- jobFinishedSuccessfully(params)
48- }
49- .doOnError({
50- Timber .w(" Failed to download all data" )
51- jobFinishedFailed(params)
52- })
53- .subscribeOn(Schedulers .io())
54- .subscribe({}, {
55- Timber .w(it, " Failed to download app configuration" )
56- })
44+ .subscribeOn(Schedulers .io())
45+ .subscribe({
46+ Timber .i(" Successfully downloaded all data" )
47+ jobFinishedSuccessfully(params)
48+ }, {
49+ Timber .w(it, " Failed to download app configuration" )
50+ jobFinishedFailed(params)
51+ })
5752
5853 return true
5954 }
You can’t perform that action at this time.
0 commit comments