Merge "Enable the suggesiton test on disabled components" into main

This commit is contained in:
Jason Chiu
2023-10-03 09:29:43 +00:00
committed by Android (Google) Code Review

View File

@@ -97,7 +97,8 @@ public class SettingsSuggestionsTest {
final ComponentName componentName = new ComponentName(context, activityName);
final ActivityInfo info;
try {
info = pm.getActivityInfo(componentName, PackageManager.GET_META_DATA);
info = pm.getActivityInfo(componentName, PackageManager.GET_META_DATA
| PackageManager.MATCH_DISABLED_COMPONENTS);
} catch (NameNotFoundException e) {
throw new RuntimeException(e);
}