Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Unified Diff: webrtc/api/java/android/org/webrtc/NetworkMonitor.java

Issue 2112963002: Add UNKNOWN_CELLULAR network type and allow unknown network type in NetworkMonitor (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: . Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/api/java/android/org/webrtc/NetworkMonitorAutoDetect.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/java/android/org/webrtc/NetworkMonitor.java
diff --git a/webrtc/api/java/android/org/webrtc/NetworkMonitor.java b/webrtc/api/java/android/org/webrtc/NetworkMonitor.java
index 3fcb1c511ed6d4724650d99035847e36db9bf67a..cbe68d052c17fa9313da9d5b297c3438ace43485 100644
--- a/webrtc/api/java/android/org/webrtc/NetworkMonitor.java
+++ b/webrtc/api/java/android/org/webrtc/NetworkMonitor.java
@@ -231,8 +231,7 @@ public class NetworkMonitor {
*/
public static boolean isOnline() {
ConnectionType connectionType = getInstance().getCurrentConnectionType();
- return connectionType != ConnectionType.CONNECTION_UNKNOWN
- && connectionType != ConnectionType.CONNECTION_NONE;
+ return connectionType != ConnectionType.CONNECTION_NONE;
}
private native void nativeNotifyConnectionTypeChanged(long nativePtr);
« no previous file with comments | « no previous file | webrtc/api/java/android/org/webrtc/NetworkMonitorAutoDetect.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698