Skip to content

Commit

Permalink
Log exceptions when downloading sample pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedre committed May 28, 2018
1 parent 76a7d4a commit 5af5190
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.quran.labs.androidquran.pageselect

import com.crashlytics.android.Crashlytics
import com.quran.data.source.PageProvider
import com.quran.labs.androidquran.presenter.Presenter
import com.quran.labs.androidquran.util.ImageUtil
Expand Down Expand Up @@ -45,7 +46,7 @@ class PageSelectPresenter @Inject
imageUtil.downloadImage(url, previewImage)
.subscribeOn(Schedulers.io())
.observeOn(mainThreadScheduler)
.subscribe { generateData() }
.subscribe({ generateData() }, { Crashlytics.logException(it) })
)
null
} else {
Expand Down

0 comments on commit 5af5190

Please sign in to comment.