Skip to content

Commit 4abc9c6

Browse files
hunterstichpaulfthomas
authored andcommitted
[TextView] Fixed lint error when calling force refresh font variation settings
PiperOrigin-RevId: 651422787
1 parent eb56238 commit 4abc9c6

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 (canForceRefreshFontVariationSettings) {
126+
if (VERSION.SDK_INT >= VERSION_CODES.O) {
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 (canForceRefreshFontVariationSettings) {
153+
if (VERSION.SDK_INT >= VERSION_CODES.O) {
154154
maybeForceApplyFontVariationSettingsFromViewAppearance(appearance);
155155
}
156156
appearance.recycle();

0 commit comments

Comments
 (0)