Omit using ctor of PreferenceViewHolder in tests.

See the topic for related change in the support lib.

Bug: b/33774880
Test: N/A
Change-Id: I3514821db649e26068f151bd69c687faab5ae222
This commit is contained in:
Filip Pavlis
2017-04-05 11:01:10 +01:00
parent bb994166cb
commit 4bd1e4f73b
6 changed files with 20 additions and 16 deletions

View File

@@ -48,7 +48,7 @@ public class SummaryPreferenceTest {
final View view = inflater.inflate(mPreference.getLayoutResource(),
new LinearLayout(mContext), false);
mHolder = new PreferenceViewHolder(view);
mHolder = PreferenceViewHolder.createInstanceForTests(view);
}
@Test