litesuits / android-lite-http

LiteHttp is a simple, intelligent and flexible HTTP framework for Android. With LiteHttp you can make HTTP request with only one line of code! It could convert a java model to the parameter and rander the response JSON as a java model intelligently.
http://litesuits.com?form=ghttp
Apache License 2.0
830 stars 347 forks source link

AsyncExecutor的abort方法 #1

Closed chourentang closed 9 years ago

chourentang commented 10 years ago

AsyncExecutor的abort方法没有在主线程中运行,如果在abort中做视图的更新操作,比如设置TextView显示为失败,那么会有问题,我觉得应该和onPostExecute方法一样处理.

litesuits commented 10 years ago

感谢,我已加入一个onCancle方法,将在主线程运行。  原始邮件  发件人: chourentangnotifications@github.com收件人: litesuits/android-lite-httpandroid-lite-http@noreply.github.com发送时间: 2014年7月16日(周三) 16:34主题: [android-lite-http] AsyncExecutor的abort方法 (#1)AsyncExecutor的abort方法没有在主线程中运行,如果在abort中做视图的更新操作,比如设置TextView显示为失败,那么会有问题,我觉得应该和onPostExecute方法一样处理.

—Reply to this email directly or view it on GitHub.