Reintroduce network checks where required

This commit is contained in:
2022-08-20 12:44:20 +02:00
parent e7172853dc
commit 3a2fab8e68
3 changed files with 74 additions and 69 deletions
@@ -43,7 +43,7 @@ class LoadingWorker(val context: Context, params: WorkerParameters) : Worker(con
override fun doWork(): Result {
val settings = Settings()
val periodicRefresh = settings.getBoolean("periodic_refresh", false)
if (periodicRefresh) {
if (periodicRefresh && repository.isNetworkAvailable()) {
CoroutineScope(Dispatchers.IO).launch {
val notificationManager =
Internal Server Error - Amine's git
500 Internal Server Error

Gitea Version: 1.28.0+dev-211-ga30d865b78