diff options
author | dhacker29 <dhackerdvm@gmail.com> | 2015-04-24 01:47:13 -0400 |
---|---|---|
committer | David Hacker <dhackerdvm@gmail.com> | 2015-04-25 07:24:49 +0000 |
commit | 2a98e6f6f6811a478a4e60dd770f1993db4213cb (patch) | |
tree | d633ddb1f53479e11b1fc63c1ffa9aa817c62865 /src/com/cyanogenmod/setupwizard/setup | |
parent | 3371e61bb804173ae5b5920ab87e3f0db7a76a0d (diff) | |
download | packages_apps_SetupWizard-2a98e6f6f6811a478a4e60dd770f1993db4213cb.zip packages_apps_SetupWizard-2a98e6f6f6811a478a4e60dd770f1993db4213cb.tar.gz packages_apps_SetupWizard-2a98e6f6f6811a478a4e60dd770f1993db4213cb.tar.bz2 |
Disable the CyanogenServicesPage if FEATURE_LEANBACK detected
TV devices will not benefit from having a CM account.
Change-Id: I5258a1442c400b35d92c22a2b0e8dcbe3516aead
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup')
-rw-r--r-- | src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java b/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java index a362051..e5dcacc 100644 --- a/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java +++ b/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java @@ -61,7 +61,9 @@ public class CMSetupWizardData extends AbstractSetupData { if (SetupWizardUtils.hasGMS(mContext)) { pages.add(new GmsAccountPage(mContext, this).setHidden(true)); } - pages.add(new CyanogenServicesPage(mContext, this).setHidden(true)); + if (!SetupWizardUtils.hasLeanback(mContext)) { + pages.add(new CyanogenServicesPage(mContext, this).setHidden(true)); + } pages.add(new CyanogenSettingsPage(mContext, this)); pages.add(new OtherSettingsPage(mContext, this)); pages.add(new DateTimePage(mContext, this)); |