Use FooterPreference in xml explicitly

Removed the FooterPreferenceMixin from the ManageAssist page.

Fixes: 139457944
Test: manual test
Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.applications
Change-Id: I89b6cac21e924774a1fcfe790863d8eaab8d6da7
This commit is contained in:
Sunny Shao
2019-08-15 15:56:10 +08:00
parent 4ae70b518f
commit 6e21c76111
2 changed files with 6 additions and 8 deletions

View File

@@ -53,4 +53,10 @@
android:title="@string/voice_input_settings_title" android:title="@string/voice_input_settings_title"
android:fragment="com.android.settings.applications.assist.DefaultVoiceInputPicker" /> android:fragment="com.android.settings.applications.assist.DefaultVoiceInputPicker" />
<com.android.settingslib.widget.FooterPreference
android:key="manage_assist_footer"
android:title="@string/assist_footer"
android:selectable="false"
settings:searchable="false"/>
</PreferenceScreen> </PreferenceScreen>

View File

@@ -68,14 +68,6 @@ public class ManageAssist extends DashboardFragment {
use(AssistGestureSettingsPreferenceController.class).setAssistOnly(true); use(AssistGestureSettingsPreferenceController.class).setAssistOnly(true);
} }
@Override
public void onResume() {
super.onResume();
mFooterPreferenceMixin.createFooterPreference()
.setTitle(R.string.assist_footer);
}
private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, private static List<AbstractPreferenceController> buildPreferenceControllers(Context context,
Lifecycle lifecycle) { Lifecycle lifecycle) {
final List<AbstractPreferenceController> controllers = new ArrayList<>(); final List<AbstractPreferenceController> controllers = new ArrayList<>();