增加网络判断写法
This commit is contained in:
parent
f0032faffc
commit
d86bd04e6c
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue