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

@@ -56,7 +56,7 @@ public class FooterPreferenceTest {
@Test
public void bindPreference_shouldLinkifyContent() {
final FooterPreference preference = new FooterPreference(mContext);
final PreferenceViewHolder holder = new PreferenceViewHolder(
final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests(
LayoutInflater.from(mContext).inflate(R.layout.preference_footer, null));
preference.onBindViewHolder(holder);