Port font manager from v10

This commit is contained in:
Suphon Thanakornpakapong
2021-09-09 21:35:09 +07:00
parent c2c97f1ede
commit b84364d3dc
19 changed files with 698 additions and 3 deletions

View File

@@ -68,6 +68,7 @@ import com.android.launcher3.views.IconLabelDotView;
import java.text.NumberFormat;
import app.lawnchair.font.FontManager;
import app.lawnchair.util.LawnchairUtilsKt;
/**
@@ -187,6 +188,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
// widget_selection or shortcut_popup
defaultIconSize = grid.iconSizePx;
}
FontManager.INSTANCE.get(context).overrideFont(this, attrs);
mCenterVertically = a.getBoolean(R.styleable.BubbleTextView_centerVertically, false);