Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Fix possible crashes similar to #191

Cette révision appartient à :
len 2016-03-02 14:07:54 +01:00
Parent fad0027e17
révision ae9c412b6d
2 fichiers modifiés avec 2 ajouts et 2 suppressions

Voir le fichier

@ -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()

Voir le fichier

@ -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?) {