~singpolyma/cheogram-android

df6045428b84b1fd7827f5a10d83a450aed249b7 — Stephen Paul Weber 1 year, 2 months ago 684dfe5
Fix for layout race condition
1 files changed, 1 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/entities/Conversation.java
M src/main/java/eu/siacs/conversations/entities/Conversation.java => src/main/java/eu/siacs/conversations/entities/Conversation.java +1 -0
@@ 1867,6 1867,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
                            final SVG icon = getItem(position).getIcon();
                            if (icon != null) {
                                 v.post(() -> {
                                     if (v.getHeight() == 0) return;
                                     icon.setDocumentPreserveAspectRatio(com.caverock.androidsvg.PreserveAspectRatio.TOP);
                                     Bitmap bitmap = Bitmap.createBitmap(v.getHeight(), v.getHeight(), Bitmap.Config.ARGB_8888);
                                     Canvas bmcanvas = new Canvas(bitmap);