Add a config to control whether SettingsIntelligence supports Slice
Fix: 240371240 Test: manual, robotest Change-Id: Iddb08b521011a5e5134b8358a135cefb34809371
This commit is contained in:
@@ -65,6 +65,11 @@ public class FlashlightHandleActivity extends Activity implements Indexable {
|
||||
boolean enabled) {
|
||||
|
||||
final List<SearchIndexableRaw> result = new ArrayList<>();
|
||||
if (!context.getResources().getBoolean(
|
||||
R.bool.config_settingsintelligence_slice_supported)) {
|
||||
Log.d(TAG, "Search doesn't support Slice");
|
||||
return result;
|
||||
}
|
||||
|
||||
SearchIndexableRaw data = new SearchIndexableRaw(context);
|
||||
data.title = context.getString(R.string.power_flashlight);
|
||||
|
Reference in New Issue
Block a user