Merge "Enable the suggesiton test on disabled components" into main
This commit is contained in:
@@ -97,7 +97,8 @@ public class SettingsSuggestionsTest {
|
|||||||
final ComponentName componentName = new ComponentName(context, activityName);
|
final ComponentName componentName = new ComponentName(context, activityName);
|
||||||
final ActivityInfo info;
|
final ActivityInfo info;
|
||||||
try {
|
try {
|
||||||
info = pm.getActivityInfo(componentName, PackageManager.GET_META_DATA);
|
info = pm.getActivityInfo(componentName, PackageManager.GET_META_DATA
|
||||||
|
| PackageManager.MATCH_DISABLED_COMPONENTS);
|
||||||
} catch (NameNotFoundException e) {
|
} catch (NameNotFoundException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user