Skip to content

Commit 786b805

Browse files
committed
wip
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent 58f4f41 commit 786b805

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

app/src/main/java/com/nextcloud/client/network/ConnectivityService.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
package com.nextcloud.client.network;
88

99

10-
import android.net.ConnectivityManager;
11-
import android.net.Network;
1210
import androidx.annotation.NonNull;
1311

1412
/**

app/src/main/java/com/nextcloud/client/network/ConnectivityServiceImpl.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,7 @@ class ConnectivityServiceImpl(
208208
get.releaseConnection()
209209
}
210210

211-
// only cache a successful reachability result.
212-
if (!isWalled) {
213-
walledCheckCache.setValue(currentKey, false)
214-
}
211+
walledCheckCache.setValue(currentKey, isWalled)
215212

216213
Log_OC.d(TAG, "server check, isWalled: $isWalled")
217214
return isWalled

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ webkitVersion = "1.16.0"
8787
workRuntime = "2.11.2"
8888
foundationVersion = "1.11.2"
8989
browserVersion = "1.10.0"
90+
kotlinxCoroutinesTestVersion = "1.11.0"
9091

9192
[libraries]
9293
# Crypto
@@ -121,6 +122,7 @@ emoji-google = { module = "com.vanniktech:emoji-google", version.ref = "emojiGoo
121122

122123
# kotlinx
123124
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerializationJson" }
125+
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlinxCoroutinesTestVersion" }
124126

125127
# Other
126128
annotation = { module = "androidx.annotation:annotation", version.ref = "annotationVersion" }

0 commit comments

Comments
 (0)