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

Commit 66d0e423 authored by Mady Mellor's avatar Mady Mellor
Browse files

Fix issue where the update dot wasn't showing

Now that BadgedImageView is a viewgroup overriding onDraw doesn't
work, instead we can override dispatchDraw.

Fixes: 213595915
Test: visual - add a bubble and see that there is a dot
Change-Id: I5f417f95922a070f5290b7291b6e7748a69840d8
parent c3dbe772
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -173,8 +173,8 @@ public class BadgedImageView extends ConstraintLayout {
    }

    @Override
    public void onDraw(Canvas canvas) {
        super.onDraw(canvas);
    public void dispatchDraw(Canvas canvas) {
        super.dispatchDraw(canvas);

        if (!shouldDrawDot()) {
            return;