Quick fix on the no connection banner displayed when internet is available
This commit is contained in:
parent
d60d766354
commit
3169093c50
@ -12,6 +12,7 @@ Other changes:
|
|||||||
|
|
||||||
Bugfix:
|
Bugfix:
|
||||||
- Fix characters erased from the Search field when the result are coming (#545)
|
- Fix characters erased from the Search field when the result are coming (#545)
|
||||||
|
- "No connection" banner was displayed by mistake
|
||||||
|
|
||||||
Translations:
|
Translations:
|
||||||
-
|
-
|
||||||
@ -23,7 +24,7 @@ Changes in RiotX 0.5.0 (2019-09-17)
|
|||||||
===================================================
|
===================================================
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
- Implementation of login to homeerver with SSO
|
- Implementation of login to homeserver with SSO
|
||||||
- Handle M_CONSENT_NOT_GIVEN error (#64)
|
- Handle M_CONSENT_NOT_GIVEN error (#64)
|
||||||
- Auto configure homeserver and identity server URLs of LoginActivity with a magic link
|
- Auto configure homeserver and identity server URLs of LoginActivity with a magic link
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ package im.vector.matrix.android.internal.network
|
|||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import com.novoda.merlin.Merlin
|
import com.novoda.merlin.Merlin
|
||||||
|
import com.novoda.merlin.MerlinsBeard
|
||||||
import im.vector.matrix.android.internal.di.MatrixScope
|
import im.vector.matrix.android.internal.di.MatrixScope
|
||||||
import timber.log.Timber
|
import timber.log.Timber
|
||||||
import java.util.*
|
import java.util.*
|
||||||
@ -36,7 +37,7 @@ internal class NetworkConnectivityChecker @Inject constructor(context: Context)
|
|||||||
private val listeners = Collections.synchronizedSet(LinkedHashSet<Listener>())
|
private val listeners = Collections.synchronizedSet(LinkedHashSet<Listener>())
|
||||||
|
|
||||||
// True when internet is available
|
// True when internet is available
|
||||||
var hasInternetAccess = false
|
var hasInternetAccess = MerlinsBeard.Builder().build(context).isConnected
|
||||||
private set
|
private set
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user