mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Fix crashes on settings
This commit is contained in:
parent
218ea7267d
commit
bf1fdda651
2 changed files with 3 additions and 3 deletions
|
@ -108,7 +108,7 @@ class SettingsAboutFragment : SettingsNestedFragment() {
|
||||||
UpdateDownloader(activity.applicationContext).execute(downloadLink)
|
UpdateDownloader(activity.applicationContext).execute(downloadLink)
|
||||||
}.show()
|
}.show()
|
||||||
} else {
|
} else {
|
||||||
context.toast(R.string.update_check_no_new_updates)
|
activity.toast(R.string.update_check_no_new_updates)
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
it.printStackTrace()
|
it.printStackTrace()
|
||||||
|
|
|
@ -74,10 +74,10 @@ class SettingsAdvancedFragment : SettingsNestedFragment() {
|
||||||
dialog.incrementProgress(1)
|
dialog.incrementProgress(1)
|
||||||
}, {
|
}, {
|
||||||
dialog.dismiss()
|
dialog.dismiss()
|
||||||
context.toast(R.string.cache_delete_error)
|
activity.toast(R.string.cache_delete_error)
|
||||||
}, {
|
}, {
|
||||||
dialog.dismiss()
|
dialog.dismiss()
|
||||||
context.toast(getString(R.string.cache_deleted, deletedFiles.get()))
|
activity.toast(getString(R.string.cache_deleted, deletedFiles.get()))
|
||||||
preference.summary = getString(R.string.used_cache, chapterCache.readableSize)
|
preference.summary = getString(R.string.used_cache, chapterCache.readableSize)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue