mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 18:31:51 +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)
|
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 New Issue
Block a user