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

Commit 9caf39c6 authored by Saalim Quadri's avatar Saalim Quadri
Browse files

Merge branch '1234-a13-folder-notifs' into 'v1-t'

[t] feat: Fix notification badge in Folders

See merge request e/os/BlissLauncher3!155
parents 8c1c04c9 35d15e21
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -658,8 +658,12 @@ public class FolderIcon extends FrameLayout implements FolderListener, IconLabel
            mDotParams.scale = Math.max(0, mDotScale - mBackground.getScaleProgress());
            mDotParams.scale = Math.max(0, mDotScale - mBackground.getScaleProgress());
            mDotParams.dotColor = getContext().getResources()
            mDotParams.dotColor = getContext().getResources()
                    .getColor(R.color.notification_dot_bg, getContext().getTheme());
                    .getColor(R.color.notification_dot_bg, getContext().getTheme());
            mDotParams.shadowDotColor = getContext().getResources()
                    .getColor(R.color.notification_dot_shadow, getContext().getTheme());
            mDotParams.leftAlign = true;
            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);
        }
        }
    }
    }