If this is a TV device launch bluetooth pairing before Welcome page

TV devices like fugu don't have a default input method and expect to
be able to pair the bluetooth remote during setup without having to
manually initiate it with the bottom button on the device.

Change-Id: I88246fe9b28a85dc334c0108b818e78cb29491bb
This commit is contained in:
dhacker29
2015-04-23 22:54:36 -04:00
parent de06181c7e
commit 218deb9952
5 changed files with 130 additions and 1 deletions

View File

@@ -41,6 +41,9 @@ public class CMSetupWizardData extends AbstractSetupData {
@Override
protected PageList onNewPageList() {
ArrayList<Page> pages = new ArrayList<Page>();
if (SetupWizardUtils.hasLeanback(mContext)) {
pages.add(new BluetoothSetupPage(mContext, this));
}
pages.add(new WelcomePage(mContext, this));
pages.add(new WifiSetupPage(mContext, this));
if (SetupWizardUtils.hasTelephony(mContext)) {
@@ -183,4 +186,4 @@ public class CMSetupWizardData extends AbstractSetupData {
return true;
}
}
}