mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 12:31:52 +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