Commit 0306fc15 authored by Romain Hunault's avatar Romain Hunault
Browse files

Merge branch 'fix-blurred-icon-issue' into 'master'

Fix blurred icon issue: Do not scale down intrinsic width and height

See merge request !51
parents d1a87ac5 7cc900cd
Pipeline #87091 passed with stage
in 7 minutes and 32 seconds
......@@ -786,7 +786,7 @@ public class AdaptiveIconDrawableCompat extends Drawable implements Drawable.Cal
@Override
public int getIntrinsicWidth() {
return (int) (getMaxIntrinsicWidth() * DEFAULT_VIEW_PORT_SCALE);
return (int) (getMaxIntrinsicWidth() * 1f);
}
private int getMaxIntrinsicWidth() {
......@@ -806,7 +806,7 @@ public class AdaptiveIconDrawableCompat extends Drawable implements Drawable.Cal
@Override
public int getIntrinsicHeight() {
return (int) (getMaxIntrinsicHeight() * DEFAULT_VIEW_PORT_SCALE);
return (int) (getMaxIntrinsicHeight() * 1f);
}
private int getMaxIntrinsicHeight() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment