Merge "Assist gesture setting should not be available on unsupported devices" into oc-dr1-dev
diff --git a/src/com/android/settings/gestures/AssistGesturePreferenceController.java b/src/com/android/settings/gestures/AssistGesturePreferenceController.java
index 8bf660b..ede20c2 100644
--- a/src/com/android/settings/gestures/AssistGesturePreferenceController.java
+++ b/src/com/android/settings/gestures/AssistGesturePreferenceController.java
@@ -67,6 +67,7 @@
mPreference = screen.findPreference(getPreferenceKey());
if (!mFeatureProvider.isSupported(mContext)) {
mScreen.removePreference(mPreference);
+ removePreference(mScreen, getPreferenceKey());
return;
}
// Call super last or AbstractPreferenceController might remove the preference from the