mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Make reachable depend on availability
This commit is contained in:
parent
8d80ebac11
commit
4da8974128
@ -28,7 +28,7 @@ public class NetworkManager {
|
|||||||
|
|
||||||
public boolean isReachable(String uri)
|
public boolean isReachable(String uri)
|
||||||
{
|
{
|
||||||
boolean reached = true;
|
boolean reached = isAvailable();
|
||||||
try {
|
try {
|
||||||
DefaultHttpClient httpclient = new DefaultHttpClient();
|
DefaultHttpClient httpclient = new DefaultHttpClient();
|
||||||
HttpGet httpget = new HttpGet(uri);
|
HttpGet httpget = new HttpGet(uri);
|
||||||
|
Loading…
Reference in New Issue
Block a user