Use FooterPreference in xml explicitly

Removed the FooterPreferenceMixin from the BluetoothDashboardFragment page.

Fixes: 139459430
Test: manual test
Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.connecteddevice
Change-Id: I8a8b6ba656405f938e203e20e5973c1560c3a35a
This commit is contained in:
Sunny Shao
2019-08-15 16:28:35 +08:00
parent 4ae70b518f
commit 49ffd8f39f
2 changed files with 6 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ import java.util.List;
public class BluetoothDashboardFragment extends DashboardFragment {
private static final String TAG = "BluetoothDashboardFrag";
private static final String KEY_BLUETOOTH_SCREEN_FOOTER = "bluetooth_screen_footer";
public static final String KEY_BLUETOOTH_SCREEN = "bluetooth_switchbar_screen";
private FooterPreference mFooterPreference;
@@ -75,7 +76,7 @@ public class BluetoothDashboardFragment extends DashboardFragment {
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
mFooterPreference = mFooterPreferenceMixin.createFooterPreference();
mFooterPreference = findPreference(KEY_BLUETOOTH_SCREEN_FOOTER);
}
@Override