mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 20:10:04 +03:00
Fix IllegalArgumentException: Receiver not registered: NetworkInfoReceiver (#1961)
Fix IllegalArgumentException: Receiver not registered: NetworkInfoReceiver (#1961) Co-authored-by: Onuray Sahin <onurays@element.io>
This commit is contained in:
parent
2acda2c5da
commit
80551fc0c2
2 changed files with 2 additions and 3 deletions
|
@ -21,6 +21,7 @@ Bugfix 🐛:
|
|||
- Fix relative date time formatting (#822)
|
||||
- Fix crash reported by RageShake
|
||||
- Fix refreshing of sessions list when another session is logged out
|
||||
- Fix IllegalArgumentException: Receiver not registered: NetworkInfoReceiver (#1960)
|
||||
- Failed to build unique file (#1954)
|
||||
- A Kick appears has "someone has made no change" (#1959)
|
||||
|
||||
|
|
|
@ -75,9 +75,7 @@ internal class DefaultNetworkConnectivityChecker @Inject constructor(private val
|
|||
|
||||
override fun register(listener: NetworkConnectivityChecker.Listener) {
|
||||
if (listeners.isEmpty()) {
|
||||
if (backgroundDetectionObserver.isInBackground) {
|
||||
unbind()
|
||||
} else {
|
||||
if (!backgroundDetectionObserver.isInBackground) {
|
||||
bind()
|
||||
}
|
||||
backgroundDetectionObserver.register(backgroundDetectionObserverListener)
|
||||
|
|
Loading…
Add table
Reference in a new issue