mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-10 20:57:24 +01:00
Fix crashes on settings
This commit is contained in:
parent
218ea7267d
commit
bf1fdda651
@ -108,7 +108,7 @@ class SettingsAboutFragment : SettingsNestedFragment() {
|
||||
UpdateDownloader(activity.applicationContext).execute(downloadLink)
|
||||
}.show()
|
||||
} else {
|
||||
context.toast(R.string.update_check_no_new_updates)
|
||||
activity.toast(R.string.update_check_no_new_updates)
|
||||
}
|
||||
}, {
|
||||
it.printStackTrace()
|
||||
|
@ -74,10 +74,10 @@ class SettingsAdvancedFragment : SettingsNestedFragment() {
|
||||
dialog.incrementProgress(1)
|
||||
}, {
|
||||
dialog.dismiss()
|
||||
context.toast(R.string.cache_delete_error)
|
||||
activity.toast(R.string.cache_delete_error)
|
||||
}, {
|
||||
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)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user