Fix notification dot scale in AllApps with grid size enabled

Test: Manual
Bug: 141262820
Change-Id: I24abf822edaeeabf335ed698a3ac1a65b71be7dc
This commit is contained in:
Samuel Fufa committed 2019-09-27 14:49:54 -07:00
1 parent c50fe371b1
commit c96fa247a3
3 files changed
+18 -8

No files matched your search

+6 -2
View File
@@ -129,7 +129,8 @@ public class DeviceProfile {
private boolean mIsSeascape;
// Notification dots
public DotRenderer mDotRenderer;
public DotRenderer mDotRendererWorkSpace;
public DotRenderer mDotRendererAllApps;
public DeviceProfile(Context context, InvariantDeviceProfile inv,
Point minSize, Point maxSize,
@@ -230,8 +231,11 @@ public class DeviceProfile {
updateWorkspacePadding();
// This is done last, after iconSizePx is calculated above.
mDotRenderer = new DotRenderer(iconSizePx, IconShape.getShapePath(),
mDotRendererWorkSpace = new DotRenderer(iconSizePx, IconShape.getShapePath(),
IconShape.DEFAULT_PATH_SIZE);
mDotRendererAllApps = iconSizePx == allAppsIconSizePx ? mDotRendererWorkSpace :
new DotRenderer(allAppsIconSizePx, IconShape.getShapePath(),
IconShape.DEFAULT_PATH_SIZE);
}
public DeviceProfile copy(Context context) {