增加网络判断写法

This commit is contained in:
zengfantian 2015-02-28 00:01:08 +08:00
parent f0032faffc
commit d86bd04e6c
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ public abstract class ToolHTTP {
* @return 网络是否连接
*/
public static boolean checkNetwork(){
boolean isConnected = ToolNetwork.getInstance().init(MApplication.gainContext()).isConnected();
boolean isConnected = MApplication.isNetworkReady();
if(isConnected){
return true;
}else{