Use custom adaptive icon class

This commit is contained in:
Suphon Thanakornpakapong
2021-10-13 12:04:04 +07:00
parent 222270e965
commit 97209503ff
9 changed files with 33 additions and 7 deletions
@@ -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);