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

Commit 22a5a684 authored by Tony Wickham's avatar Tony Wickham
Browse files

Fix a couple notificaiton dot issues

Fixes: 172010602 by adding drawDotIfNecessary() back to BubbleTextView
Fixes: 167272638 by overriding drawDotIfNecessary() to do nothing in
DeepShortcutTextView

Change-Id: I0bfbbc6e27dedac73ae97c5a084412ce1aba11e4
parent a1733bce
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -446,6 +446,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
            canvas.restoreToCount(count);
        }
        super.onDraw(canvas);
        drawDotIfNecessary(canvas);
    }

    protected void drawFocusHighlight(Canvas canvas) {
+6 −0
Original line number Diff line number Diff line
@@ -132,6 +132,12 @@ public class DeepShortcutTextView extends BubbleTextView {
        mLoadingStatePlaceholder.draw(canvas);
    }

    @Override
    protected void drawDotIfNecessary(Canvas canvas) {
        // This view (with the text label to the side of the icon) is not designed for a dot to be
        // drawn on top of it, so never draw one even if a notification for this shortcut exists.
    }

    private void showLoadingState(boolean loading) {
        if (loading == mShowLoadingState) {
            return;