Merge "Cleanup flag "check_prebundled_is_preinstalled"" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
b4dbc50d6a
@@ -412,10 +412,8 @@ public class AccessibilitySettings extends DashboardFragment implements
|
|||||||
final List<RestrictedPreference> preferenceList = getInstalledAccessibilityPreferences(
|
final List<RestrictedPreference> preferenceList = getInstalledAccessibilityPreferences(
|
||||||
getPrefContext(), installedShortcutList, installedServiceList);
|
getPrefContext(), installedShortcutList, installedServiceList);
|
||||||
|
|
||||||
if (Flags.checkPrebundledIsPreinstalled()) {
|
removeNonPreinstalledComponents(mPreBundledServiceComponentToCategoryMap,
|
||||||
removeNonPreinstalledComponents(mPreBundledServiceComponentToCategoryMap,
|
installedShortcutList, installedServiceList);
|
||||||
installedShortcutList, installedServiceList);
|
|
||||||
}
|
|
||||||
|
|
||||||
final PreferenceCategory downloadedServicesCategory =
|
final PreferenceCategory downloadedServicesCategory =
|
||||||
mCategoryToPrefCategoryMap.get(CATEGORY_DOWNLOADED_SERVICES);
|
mCategoryToPrefCategoryMap.get(CATEGORY_DOWNLOADED_SERVICES);
|
||||||
|
@@ -463,7 +463,6 @@ public class AccessibilitySettingsTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@EnableFlags(Flags.FLAG_CHECK_PREBUNDLED_IS_PREINSTALLED)
|
|
||||||
public void testNonPreinstalledApp_IncludedInDownloadedCategory() {
|
public void testNonPreinstalledApp_IncludedInDownloadedCategory() {
|
||||||
mShadowAccessibilityManager.setInstalledAccessibilityServiceList(
|
mShadowAccessibilityManager.setInstalledAccessibilityServiceList(
|
||||||
List.of(getMockAccessibilityServiceInfo(
|
List.of(getMockAccessibilityServiceInfo(
|
||||||
|
Reference in New Issue
Block a user