mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-03 23:58:55 +01:00 
			
		
		
		
	Retry LibraryUpdateJob later if Wi-Fi condition not met
This commit is contained in:
		@@ -111,7 +111,7 @@ class LibraryUpdateJob(private val context: Context, workerParams: WorkerParamet
 | 
			
		||||
            val preferences = Injekt.get<LibraryPreferences>()
 | 
			
		||||
            val restrictions = preferences.libraryUpdateDeviceRestriction().get()
 | 
			
		||||
            if ((DEVICE_ONLY_ON_WIFI in restrictions) && !context.isConnectedToWifi()) {
 | 
			
		||||
                return Result.failure()
 | 
			
		||||
                return Result.retry()
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            // Find a running manual worker. If exists, try again later
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user