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

Commit 993a6d0e authored by Saalim Quadri's avatar Saalim Quadri Committed by Saalim Quadri
Browse files

feat: Fix notification badge in Folders

parent 44d2d1b2
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -657,8 +657,12 @@ public class FolderIcon extends FrameLayout implements FolderListener, IconLabel
            mDotParams.scale = Math.max(0, mDotScale - mBackground.getAcceptScaleProgress());
            mDotParams.dotColor = getContext().getResources()
                    .getColor(R.color.notification_dot_bg, getContext().getTheme());
            mDotParams.shadowDotColor = getContext().getResources()
                    .getColor(R.color.notification_dot_shadow, getContext().getTheme());
            mDotParams.leftAlign = true;
            mDotRenderer.draw(canvas, mDotParams, mDotInfo == null ? -1 : mDotInfo.getNotificationCount());
            mDotRenderer.draw(canvas, mDotParams,
                    mDotInfo == null ? -1 : mDotInfo.getNotificationCount(),
                    mActivity.getDeviceProfile().isTablet, false);
        }
    }