|
|
@ -242,10 +242,10 @@ class KotlinDownloadActivity : BaseActivity<ActivitySingleKotlinBinding>() { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Download.onTaskFail |
|
|
|
@Download.onTaskFail |
|
|
|
fun taskFail( |
|
|
|
fun taskFail( |
|
|
|
task: com.arialyy.aria.core.task.DownloadTask, |
|
|
|
task: com.arialyy.aria.core.task.DownloadTask?, |
|
|
|
e: Exception |
|
|
|
e: Exception |
|
|
|
) { |
|
|
|
) { |
|
|
|
if (task.key == mUrl) { |
|
|
|
if (task?.key == mUrl) { |
|
|
|
Toast.makeText(this, getString(R.string.download_fail), Toast.LENGTH_SHORT) |
|
|
|
Toast.makeText(this, getString(R.string.download_fail), Toast.LENGTH_SHORT) |
|
|
|
.show() |
|
|
|
.show() |
|
|
|
binding.stateStr = getString(R.string.start) |
|
|
|
binding.stateStr = getString(R.string.start) |
|
|
|