Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5095684e authored by Zak Cohen's avatar Zak Cohen
Browse files

TaskThumbnailView - post updates to overlays.

Post the update of the overlay to handler.
No way of knowing if an overlay will add / remove views during the update
so assume its not safe to do in layout.

Bug: 135287203
Test: manual
Change-Id: I7bd0c86da096e7108b71b2d0530e99ee950d6f2e
parent f46e3956
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -367,8 +367,11 @@ public class TaskThumbnailView extends View {
        }

        mRotated = isRotated;
        updateOverlay();
        invalidate();

        // Update can be called from {@link #onSizeChanged} during layout, post handling of overlay
        // as overlay could modify the views in the overlay as a side effect of its update.
        post(this::updateOverlay);
    }

    @Override