Fix notification dot scale in AllApps with grid size enabled
Test: Manual Bug: 141262820 Change-Id: I24abf822edaeeabf335ed698a3ac1a65b71be7dc
This commit is contained in:
1 parent
c50fe371b1
commit
c96fa247a3
3 files changed
+18
-8
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user