fune/mobile/android/android-components/components/support/images
Sebastian Kaspari ce85af7843 [components] ImageLoader(): Avoid effect loading image to leave composition too early.
Previously the call to `PerformLoad()` was shielded by mutable state (hasStartedLoading). When this state
was changed then the `PerformLoad()` composable would leave the composition and the coroutine scope
performing the load gets cancelled. This can cause loads to not happen.

It turns out `hasStartedLoading` is not needed at all: The key we pass to LaunchedEffect already guards
against multiple loads and will only perform a reload if the URL changes.
2021-09-03 14:44:27 +00:00
..
src [components] ImageLoader(): Avoid effect loading image to leave composition too early. 2021-09-03 14:44:27 +00:00
build.gradle [components] Issue https://github.com/mozilla-mobile/android-components/issues/10835: Add first simple version of an Jetpack Compose image loader using a Client implementation 2021-08-30 13:10:10 +00:00
proguard-rules-consumer.pro [components] Issue https://github.com/mozilla-mobile/android-components/issues/7002: Extract icon decoder into a generic image decoder in support-images. 2020-05-19 16:05:32 -04:00
proguard-rules.pro [components] Issue https://github.com/mozilla-mobile/android-components/issues/7002: Extract icon decoder into a generic image decoder in support-images. 2020-05-19 16:05:32 -04:00
README.md [components] Issue https://github.com/mozilla-mobile/android-components/issues/7002: Extract icon decoder into a generic image decoder in support-images. 2020-05-19 16:05:32 -04:00

Android Components > Support > Images

A collection of helpers for handling images such as icons and thumbnails.

Usage

Setting up the dependency

Use Gradle to download the library from maven.mozilla.org (Setup repository):

implementation "org.mozilla.components:support-images:{latest-version}"

License

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/