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

Commit 3feebeb1 authored by Tony Wickham's avatar Tony Wickham
Browse files

Fix taskbar folder leave-behind not being drawn

I guess FrameLayout has willNotDraw=true by default, so we need to set it to false in order to get onDraw().

Test: open a folder on taskbar
Bug: 197866264
Change-Id: Ia521bc3da28527b9c3f1fa7bcdaf5d9ffb7feccf
parent 497a6ad8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -90,6 +90,9 @@ public class TaskbarView extends FrameLayout implements FolderIcon.FolderIconPar
        // We layout the icons to be of mIconTouchSize in width and height
        mItemMarginLeftRight = actualMargin - (mIconTouchSize - actualIconSize) / 2;
        mItemPadding = (mIconTouchSize - actualIconSize) / 2;

        // Needed to draw folder leave-behind when opening one.
        setWillNotDraw(false);
    }

    protected void init(TaskbarViewController.TaskbarViewCallbacks callbacks) {