SetupWizard: Remove accessibilty geture check

Change-Id: I6cee55773405cc057f0b1e343c93b9f1588666a4
This commit is contained in:
cretin45 2015-02-23 13:13:22 -08:00
parent ad4b36e063
commit 822c7ec5f8

View File

@ -96,16 +96,14 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks
if (savedInstanceState != null && savedInstanceState.containsKey("data")) { if (savedInstanceState != null && savedInstanceState.containsKey("data")) {
mSetupData.load(savedInstanceState.getBundle("data")); mSetupData.load(savedInstanceState.getBundle("data"));
} }
if (EnableAccessibilityController.canEnableAccessibilityViaGesture(this)) { mEnableAccessibilityController =
mEnableAccessibilityController = EnableAccessibilityController.getInstance(getApplicationContext());
EnableAccessibilityController.getInstance(getApplicationContext()); mRootView.setOnTouchListener(new View.OnTouchListener() {
mRootView.setOnTouchListener(new View.OnTouchListener() { @Override
@Override public boolean onTouch(View v, MotionEvent event) {
public boolean onTouch(View v, MotionEvent event) { return mEnableAccessibilityController.onInterceptTouchEvent(event);
return mEnableAccessibilityController.onInterceptTouchEvent(event); }
} });
});
}
// Since this is a new component, we need to disable here if the user // Since this is a new component, we need to disable here if the user
// has already been through setup on a previous version. // has already been through setup on a previous version.
try { try {