diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAboutFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAboutFragment.kt index 9b9e5d390..e094d5624 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAboutFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAboutFragment.kt @@ -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() diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedFragment.kt index e51c9c7ab..4a0a25cac 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAdvancedFragment.kt @@ -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) }) }