Merge "Cleanup flag "check_prebundled_is_preinstalled"" into main

This commit is contained in:
Daniel Norman
2024-11-25 20:45:50 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 5 deletions

View File

@@ -412,10 +412,8 @@ public class AccessibilitySettings extends DashboardFragment implements
final List<RestrictedPreference> preferenceList = getInstalledAccessibilityPreferences(
getPrefContext(), installedShortcutList, installedServiceList);
if (Flags.checkPrebundledIsPreinstalled()) {
removeNonPreinstalledComponents(mPreBundledServiceComponentToCategoryMap,
installedShortcutList, installedServiceList);
}
removeNonPreinstalledComponents(mPreBundledServiceComponentToCategoryMap,
installedShortcutList, installedServiceList);
final PreferenceCategory downloadedServicesCategory =
mCategoryToPrefCategoryMap.get(CATEGORY_DOWNLOADED_SERVICES);

View File

@@ -463,7 +463,6 @@ public class AccessibilitySettingsTest {
}
@Test
@EnableFlags(Flags.FLAG_CHECK_PREBUNDLED_IS_PREINSTALLED)
public void testNonPreinstalledApp_IncludedInDownloadedCategory() {
mShadowAccessibilityManager.setInstalledAccessibilityServiceList(
List.of(getMockAccessibilityServiceInfo(