libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/NavigationViewModel.java
@SuppressWarnings( {"MissingPermission"})
  private boolean hasNetworkConnection() {
    if (connectivityManager == null) {
      return false;
    }

    NetworkInfo activeNetwork = connectivityManager.getActiveNetworkInfo();
    return activeNetwork != null && activeNetwork.isConnectedOrConnecting();
  }
/**
   * Checks for active network connection.
   *
   * @return true if connected, false otherwise
   */
Checks for active network connection.
@return true if connected, false otherwise
Checks for active network connection . @return true if connected false otherwise
@SuppressWarnings( {"MissingPermission"})
  private boolean hasNetworkConnection() {
    if (connectivityManager == null) {
      return false;
    }
    NetworkInfo activeNetwork = connectivityManager.getActiveNetworkInfo();
    return activeNetwork != null && activeNetwork.isConnectedOrConnecting();
  }
@ SuppressWarnings ( { "MissingPermission" } ) private boolean hasNetworkConnection ( ) { if ( connectivityManager == null ) { return false ; } NetworkInfo activeNetwork = connectivityManager . getActiveNetworkInfo ( ) ; return activeNetwork != null && activeNetwork . isConnectedOrConnecting ( ) ; }
Checks for active network connection.
Checks for active network connection .