Ask Your Question
1

When onlyRetrieveFromCache(true) and diskCacheStrategy(DiskCacheStrategy.NONE) are used, is Glide's error() request option still activated?

asked 2023-06-04 17:09:59 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-04 17:29:01 +0000

lalupa gravatar image

Yes, Glide's error() request option is still activated even when onlyRetrieveFromCache(true) and diskCacheStrategy(DiskCacheStrategy.NONE) are used. The error() method is used to specify the resource to be displayed in case the requested resource is unavailable or cannot be loaded for some reason. This behavior is independent of the caching strategy or retrieval options used by Glide.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-04 17:09:59 +0000

Seen: 1 times

Last updated: Jun 04 '23