From b3ddfee965fe3c9ae9aaf5e579077d55af46f39f Mon Sep 17 00:00:00 2001 From: Maarten Vercruysse <67873169+MV-GH@users.noreply.github.com> Date: Sun, 20 Aug 2023 23:10:32 +0200 Subject: [PATCH] Change the default of isCurrentlyConnected (#1181) * Change the default to make it pass the test * Trigger woodpecker --------- Co-authored-by: Kevin Phoenix --- app/src/main/java/com/jerboa/Utils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/jerboa/Utils.kt b/app/src/main/java/com/jerboa/Utils.kt index 3470d425b..70b4f62ee 100644 --- a/app/src/main/java/com/jerboa/Utils.kt +++ b/app/src/main/java/com/jerboa/Utils.kt @@ -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()