Quick fix on the no connection banner displayed when internet is available

This commit is contained in:
Benoit Marty 2019-09-19 12:55:39 +02:00
parent d60d766354
commit 3169093c50
2 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,7 @@ Other changes:
Bugfix:
- Fix characters erased from the Search field when the result are coming (#545)
- "No connection" banner was displayed by mistake
Translations:
-
@ -23,7 +24,7 @@ Changes in RiotX 0.5.0 (2019-09-17)
===================================================
Features:
- Implementation of login to homeerver with SSO
- Implementation of login to homeserver with SSO
- Handle M_CONSENT_NOT_GIVEN error (#64)
- Auto configure homeserver and identity server URLs of LoginActivity with a magic link

View File

@ -18,6 +18,7 @@ package im.vector.matrix.android.internal.network
import android.content.Context
import com.novoda.merlin.Merlin
import com.novoda.merlin.MerlinsBeard
import im.vector.matrix.android.internal.di.MatrixScope
import timber.log.Timber
import java.util.*
@ -36,7 +37,7 @@ internal class NetworkConnectivityChecker @Inject constructor(context: Context)
private val listeners = Collections.synchronizedSet(LinkedHashSet<Listener>())
// True when internet is available
var hasInternetAccess = false
var hasInternetAccess = MerlinsBeard.Builder().build(context).isConnected
private set
init {