mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
Problem: i want to load avatars and if no avatar is received, i want to show the placeholder. However with coil it's not possible to make the placeholders rounded. See https://github.com/coil-kt/coil/issues/37 I could just set the old rounded drawables that we have, but then theming wouldn't work! So i ask myself what the best solution could be: - Somehow check beforehand if an avatar is set at all? and then choose between loading the avatar or loading the the static drawables in their own loading request. - Somehow check if the avatar response is empty. And if yes, make another request to load the static drawables. - Use jetpack compose instead of coil to clip the image? See https://stackoverflow.com/questions/66014834/how-to-draw-a-circular-image-in-android-jetpack-compose - create new svg's? Somehow it should be possible to invert a circle and just overlay it over an image..? Signed-off-by: Marcel Hibbe <dev@mhibbe.de> |
||
---|---|---|
.. | ||
schemas/com.nextcloud.talk.data.source.local.TalkDatabase | ||
src | ||
build.gradle | ||
lint.xml | ||
proguard-rules.pro |