summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/setupwizard/setup
diff options
context:
space:
mode:
authordhacker29 <dhackerdvm@gmail.com>2015-04-23 01:30:19 -0400
committerdhacker29 <dhackerdvm@gmail.com>2015-04-23 02:31:51 -0400
commitde06181c7e22364656fa5373afb1234c419c1b6b (patch)
treec03063ec9f48029fdd348228f30ee17aa8f2764b /src/com/cyanogenmod/setupwizard/setup
parentcfc4a0db6455d8d9429962b10de00ee02efacaee (diff)
downloadpackages_apps_SetupWizard-de06181c7e22364656fa5373afb1234c419c1b6b.zip
packages_apps_SetupWizard-de06181c7e22364656fa5373afb1234c419c1b6b.tar.gz
packages_apps_SetupWizard-de06181c7e22364656fa5373afb1234c419c1b6b.tar.bz2
WifiSetup: If device has Leanback feature specify tv.settings
Fugu has both com.android.settings and com.android.tv.settings so currently it brings up a selector dialog for how to handle the wifi intent, which leads to "Activity is launching as a new task, so cancelling activity result." Fix this by passing the component name in the intent if FEATURE_LEANBACK is present Change-Id: I470590315d3f95a32b7796dd4a916a543392fcd6
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup')
-rw-r--r--src/com/cyanogenmod/setupwizard/setup/WifiSetupPage.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/WifiSetupPage.java b/src/com/cyanogenmod/setupwizard/setup/WifiSetupPage.java
index a9574fd..63a9a0e 100644
--- a/src/com/cyanogenmod/setupwizard/setup/WifiSetupPage.java
+++ b/src/com/cyanogenmod/setupwizard/setup/WifiSetupPage.java
@@ -222,6 +222,9 @@ public class WifiSetupPage extends SetupPage {
private void launchWifiSetup() {
SetupWizardUtils.tryEnablingWifi(mContext);
Intent intent = new Intent(SetupWizardApp.ACTION_SETUP_WIFI);
+ if (SetupWizardUtils.hasLeanback(mContext)) {
+ intent.setComponent(SetupWizardUtils.mTvwifisettingsActivity);
+ }
intent.putExtra(SetupWizardApp.EXTRA_FIRST_RUN, true);
intent.putExtra(SetupWizardApp.EXTRA_ALLOW_SKIP, true);
intent.putExtra(SetupWizardApp.EXTRA_USE_IMMERSIVE, true);