Skip to content

Commit 3625078

Browse files
committed
Prevent ConnectivityManager.TooManyRequestsException
Fixes #139
1 parent 1e5f0ea commit 3625078

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zoomable-image/coil/src/main/kotlin/me/saket/telephoto/zoomable/coil/CoilImageSource.kt

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ internal class Resolver(
111111
// Ignore "no-store" http headers if they're present and always cache images to disk. Otherwise,
112112
// telephoto will be unable to sub-sample large images directly from coil's memory cache.
113113
.respectCacheHeaders(false)
114+
// Prevent ConnectivityManager.TooManyRequestsException (https://github.com/coil-kt/coil/issues/2567).
115+
.networkObserverEnabled(false)
114116
.build()
115117
} else imageLoader
116118

0 commit comments

Comments
 (0)