commit | 1db30b7749248bc91c0fb7ef2a70d58b4d876188 | [log] [tgz] |
---|---|---|
author | Kevin Chyn <kchyn@google.com> | Fri Jun 30 16:27:49 2017 -0700 |
committer | Kevin Chyn <kchyn@google.com> | Fri Jun 30 16:27:49 2017 -0700 |
tree | d4794ad06d3087420a0908093a24d206e70bc86c | |
parent | 4e34839a1e988f4dd8948071367c8f12c9a37b1e [diff] |
Assist gesture setting should not be available on unsupported devices Fixes: 63176246 Test: manual Change-Id: I17cd338eafd2e1a86d1e82d81bc9817eaf18d57b
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