[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-android] 02/02: [wallet] another NetworkManager fix
From: |
gnunet |
Subject: |
[taler-taler-android] 02/02: [wallet] another NetworkManager fix |
Date: |
Tue, 26 Sep 2023 18:48:39 +0200 |
This is an automated email from the git hooks/post-receive script.
torsten-grote pushed a commit to branch master
in repository taler-android.
commit 40358ae2bef2bac4944719535cff6fe240607858
Author: Torsten Grote <t@grobox.de>
AuthorDate: Tue Sep 26 18:48:30 2023 +0200
[wallet] another NetworkManager fix
---
wallet/src/main/java/net/taler/wallet/NetworkManager.kt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/wallet/src/main/java/net/taler/wallet/NetworkManager.kt
b/wallet/src/main/java/net/taler/wallet/NetworkManager.kt
index 064135b..a45ad48 100644
--- a/wallet/src/main/java/net/taler/wallet/NetworkManager.kt
+++ b/wallet/src/main/java/net/taler/wallet/NetworkManager.kt
@@ -34,10 +34,11 @@ class NetworkManager(context: Context) :
ConnectivityManager.NetworkCallback() {
val networkStatus: LiveData<Boolean>
init {
+ // careful, the order below is important, should probably get
simplified
connectivityManager = context.getSystemService(CONNECTIVITY_SERVICE)
as ConnectivityManager
- connectivityManager.registerDefaultNetworkCallback(this)
_networkStatus = MutableLiveData(getCurrentStatus())
networkStatus = _networkStatus
+ connectivityManager.registerDefaultNetworkCallback(this)
}
@UiThread
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.