diff options
author | cretin45 <cretin45@gmail.com> | 2015-01-27 11:10:09 -0800 |
---|---|---|
committer | cretin45 <cretin45@gmail.com> | 2015-01-27 11:10:09 -0800 |
commit | d842eed4200a421aa6707428f36bdea1fac8d8cc (patch) | |
tree | da937b30a22d56384063f4d1d25b8ebf2c680c2e /src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java | |
parent | bc5b50f1d5836d752415b3a0ac0436b8a59ef2b1 (diff) | |
download | packages_apps_SetupWizard-d842eed4200a421aa6707428f36bdea1fac8d8cc.zip packages_apps_SetupWizard-d842eed4200a421aa6707428f36bdea1fac8d8cc.tar.gz packages_apps_SetupWizard-d842eed4200a421aa6707428f36bdea1fac8d8cc.tar.bz2 |
SetupWizard: Forward port accessibility
Change-Id: I04e5e02bfb94b9a6c6b6a0e95f1059a710075528
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java')
-rw-r--r-- | src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java b/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java index 6d05c26..d696854 100644 --- a/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java +++ b/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java @@ -24,6 +24,7 @@ import android.content.res.Resources; import android.os.Bundle; import android.provider.Settings; import android.util.Log; +import android.view.MotionEvent; import android.view.View; import android.widget.Button; @@ -35,6 +36,7 @@ import com.cyanogenmod.setupwizard.setup.CyanogenServicesPage; import com.cyanogenmod.setupwizard.setup.CyanogenSettingsPage; import com.cyanogenmod.setupwizard.setup.Page; import com.cyanogenmod.setupwizard.setup.SetupDataCallbacks; +import com.cyanogenmod.setupwizard.util.EnableAccessibilityController; import com.cyanogenmod.setupwizard.util.SetupWizardUtils; import com.cyanogenmod.setupwizard.util.WhisperPushUtils; @@ -81,6 +83,13 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks if (savedInstanceState != null && savedInstanceState.containsKey("data")) { mSetupData.load(savedInstanceState.getBundle("data")); } + final EnableAccessibilityController acc = new EnableAccessibilityController(this); + mRootView.setOnTouchListener(new View.OnTouchListener() { + @Override + public boolean onTouch(View v, MotionEvent event) { + return acc.onInterceptTouchEvent(event); + } + }); // Since this is a new component, we need to disable here if the user // has already been through setup on a previous version. try { |