Skip to content

Commit d3f2ca8

Browse files
hunterstichdrchen
authored andcommitted
Automated g4 rollback of changelist 651422787
PiperOrigin-RevId: 658415973
1 parent ef1e1cd commit d3f2ca8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/java/com/google/android/material/textview/MaterialTextView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public void setTextAppearance(@NonNull Context context, int resId) {
123123
if (canApplyLineHeight) {
124124
applyLineHeightFromViewAppearance(appearance);
125125
}
126-
if (VERSION.SDK_INT >= VERSION_CODES.O) {
126+
if (canForceRefreshFontVariationSettings) {
127127
maybeForceApplyFontVariationSettingsFromViewAppearance(appearance);
128128
}
129129
appearance.recycle();
@@ -150,7 +150,7 @@ private void initialize(@Nullable AttributeSet attrs, int defStyleAttr, int defS
150150
if (canApplyLineHeight) {
151151
applyLineHeightFromViewAppearance(appearance);
152152
}
153-
if (VERSION.SDK_INT >= VERSION_CODES.O) {
153+
if (canForceRefreshFontVariationSettings) {
154154
maybeForceApplyFontVariationSettingsFromViewAppearance(appearance);
155155
}
156156
appearance.recycle();

0 commit comments

Comments
 (0)