Merge "[PK Setting] update searchable if page is not visible" into main
This commit is contained in:
@@ -58,7 +58,8 @@ public class ModifierKeysSettings extends DashboardFragment {
|
|||||||
protected boolean isPageSearchEnabled(Context context) {
|
protected boolean isPageSearchEnabled(Context context) {
|
||||||
return FeatureFlagUtils
|
return FeatureFlagUtils
|
||||||
.isEnabled(
|
.isEnabled(
|
||||||
context, FeatureFlagUtils.SETTINGS_NEW_KEYBOARD_MODIFIER_KEY);
|
context, FeatureFlagUtils.SETTINGS_NEW_KEYBOARD_MODIFIER_KEY)
|
||||||
|
&& !PhysicalKeyboardFragment.getHardKeyboards(context).isEmpty();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -474,5 +474,10 @@ public final class PhysicalKeyboardFragment extends SettingsPreferenceFragment
|
|||||||
sir.xmlResId = R.xml.physical_keyboard_settings;
|
sir.xmlResId = R.xml.physical_keyboard_settings;
|
||||||
return Arrays.asList(sir);
|
return Arrays.asList(sir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected boolean isPageSearchEnabled(Context context) {
|
||||||
|
return !getHardKeyboards(context).isEmpty();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user