Assist gesture setting should not be available on unsupported devices

Fixes: 63176246

Test: manual
Change-Id: I17cd338eafd2e1a86d1e82d81bc9817eaf18d57b
This commit is contained in:
Kevin Chyn
2017-06-30 16:27:49 -07:00
parent 4e34839a1e
commit 1db30b7749

View File

@@ -67,6 +67,7 @@ public class AssistGesturePreferenceController extends GesturePreferenceControll
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