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 75e49820f..6bcfa82cd 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 @@ -104,7 +104,7 @@ class SettingsAboutFragment : SettingsNestedFragment() { .negativeText(getString(R.string.update_check_ignore)) .onPositive { dialog, which -> // User output that download has started - context.toast(R.string.update_check_download_started) + activity.toast(R.string.update_check_download_started) // Start download UpdateDownloader(activity.applicationContext).execute(downloadLink) }.show() diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsDownloadsFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsDownloadsFragment.kt index 4af378739..ad137320d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsDownloadsFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsDownloadsFragment.kt @@ -76,7 +76,7 @@ class SettingsDownloadsFragment : SettingsNestedFragment() { File.separator + getString(R.string.app_name) + File.separator + "downloads" - return mutableListOf(File(defaultDir)) + context.getExternalFilesDirs("") + return mutableListOf(File(defaultDir)) + activity.getExternalFilesDirs("") } override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {