Skip to content

Commit 642343b

Browse files
cketchamdsn5ft
authored andcommitted
Fix failing test by adding AppCompat theme
PiperOrigin-RevId: 275535752
1 parent abe77f1 commit 642343b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/javatests/com/google/android/material/textview/MaterialTextViewTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public void readTestLineHeights() {
5050

5151
@Test
5252
public void ensureThatViewCanBeCreatedWithoutSettingLineHeightAttribute() {
53+
context.setTheme(R.style.Theme_AppCompat);
5354
inflater.inflate(R.layout.text_view_without_line_height, null, false);
5455
}
5556

0 commit comments

Comments
 (0)