diff --git a/packages/SettingsLib/FooterPreference/res/layout-v31/preference_footer.xml b/packages/SettingsLib/FooterPreference/res/layout-v31/preference_footer.xml index b1276303b801..212ae528a6b9 100644 --- a/packages/SettingsLib/FooterPreference/res/layout-v31/preference_footer.xml +++ b/packages/SettingsLib/FooterPreference/res/layout-v31/preference_footer.xml @@ -46,7 +46,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> - - + android:layout_height="wrap_content"/> - + android:orientation="vertical"> + + + + diff --git a/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/FooterPreferenceTest.java b/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/FooterPreferenceTest.java index 3b18c57e28fa..61a28aab061f 100644 --- a/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/FooterPreferenceTest.java +++ b/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/FooterPreferenceTest.java @@ -19,7 +19,6 @@ package com.android.settingslib.widget; import static com.google.common.truth.Truth.assertThat; import android.content.Context; -import android.text.method.LinkMovementMethod; import android.view.LayoutInflater; import android.widget.TextView; @@ -45,17 +44,6 @@ public class FooterPreferenceTest { mFooterPreference = new FooterPreference(mContext); } - @Test - public void bindPreference_shouldLinkifyContent() { - final PreferenceViewHolder holder = PreferenceViewHolder.createInstanceForTests( - LayoutInflater.from(mContext).inflate(R.layout.preference_footer, null)); - - mFooterPreference.onBindViewHolder(holder); - - assertThat(((TextView) holder.findViewById(android.R.id.title)).getMovementMethod()) - .isInstanceOf(LinkMovementMethod.class); - } - @Test public void setSummary_summarySet_shouldSetAsTitle() { mFooterPreference.setSummary("summary");