Merge "Assist gesture setting should not be available on unsupported devices" into oc-dr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
72a94e9f5a
@@ -67,6 +67,7 @@ public class AssistGesturePreferenceController extends GesturePreferenceControll
|
|||||||
mPreference = screen.findPreference(getPreferenceKey());
|
mPreference = screen.findPreference(getPreferenceKey());
|
||||||
if (!mFeatureProvider.isSupported(mContext)) {
|
if (!mFeatureProvider.isSupported(mContext)) {
|
||||||
mScreen.removePreference(mPreference);
|
mScreen.removePreference(mPreference);
|
||||||
|
removePreference(mScreen, getPreferenceKey());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Call super last or AbstractPreferenceController might remove the preference from the
|
// Call super last or AbstractPreferenceController might remove the preference from the
|
||||||
|
Reference in New Issue
Block a user