光环助手V3.2数据统计需求(登录,问答精选刷新)

This commit is contained in:
kehaoyuan
2018-04-11 10:45:17 +08:00
parent b8e1e4e21c
commit f3eeaddec8
23 changed files with 139 additions and 41 deletions

View File

@ -154,7 +154,7 @@ public class DeviceUtils {
return null;
}
private static String getNetwork(Context context) {
public static String getNetwork(Context context) {
NetworkInfo info = ((ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE)).getActiveNetworkInfo();
if (info != null && info.isConnected()) {