Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
eDrive
Commits
30614c4b
Commit
30614c4b
authored
Oct 08, 2021
by
narinder Rana
Browse files
refine code
parent
fa2349ea
Pipeline
#139790
passed with stage
in 2 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/drive/receivers/ConnectivityReceiver.java
View file @
30614c4b
...
...
@@ -26,6 +26,8 @@ public class ConnectivityReceiver
}
public
static
boolean
isConnected
()
{
try
{
String
command
=
"ping -c 1 ecloud.global"
;
return
Runtime
.
getRuntime
().
exec
(
command
).
waitFor
()
==
0
;
...
...
@@ -51,7 +53,7 @@ public class ConnectivityReceiver
isConnected
=
activeNetwork
!=
null
&&
activeNetwork
.
isConnectedOrConnecting
();
Log
.
e
(
TAG
,
"connectivityReceiverListener...
.
"
+
isConnected
());
Log
.
e
(
TAG
,
"connectivityReceiverListener..."
+
isConnected
());
if
(
connectivityReceiverListener
!=
null
)
{
connectivityReceiverListener
.
onNetworkConnectionChanged
(
isConnected
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment