Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载过程中点击取消更新出错 #13

Open
hantu123 opened this issue Dec 6, 2017 · 3 comments
Open

下载过程中点击取消更新出错 #13

hantu123 opened this issue Dec 6, 2017 · 3 comments

Comments

@hantu123
Copy link

hantu123 commented Dec 6, 2017

报错信息如下
va.lang.IllegalStateException: Fragment DownLoadDialog{42a40288} not attached to Activity

@hantu123
Copy link
Author

hantu123 commented Dec 6, 2017

真是坑啊,up主改写了使用HttpURLConnection以后
结束线程并没有把HttpURLConnection disconnect();

自己加了个函数

public void cancelDown(){
connection.disconnect();
}

关闭下载链接就可以,不然的话,即使关闭了下载线程,还是会继续下载的

@tllhg
Copy link

tllhg commented Apr 13, 2018

具体在哪里改呀,希望能告知,谢谢

@welir
Copy link

welir commented May 31, 2019

Doy you have source code for fix it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants