Use custom adaptive icon class
This commit is contained in:
@@ -54,6 +54,8 @@ import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import app.lawnchair.icons.CustomAdaptiveIconDrawable;
|
||||
|
||||
/**
|
||||
* Abstract representation of the shape of an icon shape
|
||||
*/
|
||||
@@ -435,7 +437,7 @@ public abstract class IconShape {
|
||||
|
||||
Region full = new Region(0, 0, size, size);
|
||||
Region iconR = new Region();
|
||||
AdaptiveIconDrawable drawable = new AdaptiveIconDrawable(
|
||||
AdaptiveIconDrawable drawable = new CustomAdaptiveIconDrawable(
|
||||
new ColorDrawable(Color.BLACK), new ColorDrawable(Color.BLACK));
|
||||
drawable.setBounds(0, 0, size, size);
|
||||
iconR.setPath(drawable.getIconMask(), full);
|
||||
|
||||
Reference in New Issue
Block a user