use of com.android.settingslib.widget.LayoutPreference in project android_packages_apps_Settings by omnirom.
the class EntityHeaderControllerTest method testBuildView_withContext_shouldBuildPreferenceAllowedBelowDivider.
@Test
public void testBuildView_withContext_shouldBuildPreferenceAllowedBelowDivider() {
mController = EntityHeaderController.newInstance(mActivity, mFragment, null);
Preference preference = mController.done(mActivity, mShadowContext);
assertThat(preference instanceof LayoutPreference).isTrue();
assertThat(((LayoutPreference) preference).isAllowDividerBelow()).isTrue();
}
Aggregations