From be807cb6c85e7d0a3a6f65a021d43453f8099896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Borcz?= Date: Fri, 15 Mar 2019 21:33:14 +0100 Subject: [PATCH] Change settings for checking the internet connection (#282) --- .../main/java/io/github/wulkanowy/data/RepositoryModule.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/github/wulkanowy/data/RepositoryModule.kt b/app/src/main/java/io/github/wulkanowy/data/RepositoryModule.kt index 8fdfde30..c832368a 100644 --- a/app/src/main/java/io/github/wulkanowy/data/RepositoryModule.kt +++ b/app/src/main/java/io/github/wulkanowy/data/RepositoryModule.kt @@ -5,7 +5,7 @@ import android.content.SharedPreferences import android.content.res.Resources import androidx.preference.PreferenceManager import com.github.pwittchen.reactivenetwork.library.rx2.internet.observing.InternetObservingSettings -import com.github.pwittchen.reactivenetwork.library.rx2.internet.observing.strategy.SocketInternetObservingStrategy +import com.github.pwittchen.reactivenetwork.library.rx2.internet.observing.strategy.WalledGardenInternetObservingStrategy import com.readystatesoftware.chuck.api.ChuckCollector import com.readystatesoftware.chuck.api.ChuckInterceptor import com.readystatesoftware.chuck.api.RetentionManager @@ -27,8 +27,7 @@ internal class RepositoryModule { @Provides fun provideInternetObservingSettings(): InternetObservingSettings { return InternetObservingSettings.builder() - .strategy(SocketInternetObservingStrategy()) - .host("www.google.com") + .strategy(WalledGardenInternetObservingStrategy()) .build() }