Skip to content

Commit 213d9cd

Browse files
ymariandsn5ft
authored andcommitted
Set theme in memory view test
PiperOrigin-RevId: 275312705
1 parent b72c7e7 commit 213d9cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

catalog/test/javatests/io/material/catalog/feature/MemoryViewTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public class MemoryViewTest {
5252
@Before
5353
public void createAndMeasureMemoryView() {
5454
Context context = ApplicationProvider.getApplicationContext();
55+
context.setTheme(R.style.Theme_AppCompat);
5556
memoryView = new MemoryView(context);
5657
int spec = MeasureSpec.makeMeasureSpec(500, MeasureSpec.EXACTLY);
5758
memoryView.setLayoutParams(new LayoutParams(WRAP_CONTENT, WRAP_CONTENT));

0 commit comments

Comments
 (0)