val getSourceBackgroundTask = GetSourceBackgroundTask()
// Get the source.
- executorService.execute { mutableLiveDataSourceStringArray.postValue(getSourceBackgroundTask.acquire(urlString, userAgent, localeString, proxy, contentResolver, this)) }
+ executorService.execute { mutableLiveDataSourceStringArray.postValue(getSourceBackgroundTask.acquire(urlString, userAgent, localeString, proxy, contentResolver, this,
+ false)) }
}
// The source observer.
}
// The workhorse that gets the source.
- fun updateSource(urlString: String) {
+ fun updateSource(urlString: String, ignoreSslErrors: Boolean) {
// Reset the mutable live data error string. This prevents the snackbar from displaying later if the activity restarts.
mutableLiveDataErrorString.postValue("")
val getSourceBackgroundTask = GetSourceBackgroundTask()
// Get the source.
- executorService.execute { mutableLiveDataSourceStringArray.postValue(getSourceBackgroundTask.acquire(urlString, userAgent, localeString, proxy, contentResolver, this)) }
+ executorService.execute { mutableLiveDataSourceStringArray.postValue(getSourceBackgroundTask.acquire(urlString, userAgent, localeString, proxy, contentResolver, this,
+ ignoreSslErrors)) }
}
}
\ No newline at end of file