mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-15 05:27:28 +01:00
Now uses glide for notification
This commit is contained in:
@@ -610,10 +610,7 @@ class ReaderPresenter : BasePresenter<ReaderActivity>() {
|
||||
|
||||
//Check if file doesn't already exist
|
||||
if (destFile.exists()) {
|
||||
if (prefs.showSavePageNotification())
|
||||
imageNotifier.onComplete(destFile)
|
||||
else
|
||||
context.toast(context.getString(R.string.page_downloaded, destFile.path))
|
||||
} else {
|
||||
if (inputFile.exists()) {
|
||||
// Copy file
|
||||
@@ -624,10 +621,7 @@ class ReaderPresenter : BasePresenter<ReaderActivity>() {
|
||||
{ imageNotifier.onComplete(it) },
|
||||
{ error ->
|
||||
Timber.e(error.message)
|
||||
if (prefs.showSavePageNotification())
|
||||
imageNotifier.onError(error.message)
|
||||
else
|
||||
context.toast(error.message)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user