Assist gesture setting should not be available on unsupported devices
Fixes: 63176246 Test: manual Change-Id: I17cd338eafd2e1a86d1e82d81bc9817eaf18d57b
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user