Skip to content

Commit

Permalink
Change the default of isCurrentlyConnected (#1181)
Browse files Browse the repository at this point in the history
* Change the default to make it pass the test

* Trigger woodpecker

---------

Co-authored-by: Kevin Phoenix <[email protected]>
  • Loading branch information
MV-GH and twizmwazin authored Aug 20, 2023
1 parent 5cbb7c1 commit b3ddfee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/jerboa/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,7 @@ fun ConnectivityManager?.isCurrentlyConnected(): Boolean =
this?.activeNetwork
?.let(::getNetworkCapabilities)
?.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
?: false
?: true

/**
* When calling this, you must call ActivityResultLauncher.unregister()
Expand Down

0 comments on commit b3ddfee

Please sign in to comment.