Show all launcher activities (even if there is a media service too)
Fixes: 142978506
Test: manual
Change-Id: Ibd0d1f9584e39d2e19e54d2899f7c569b1b1d413
diff --git a/src/com/android/car/carlauncher/AppLauncherUtils.java b/src/com/android/car/carlauncher/AppLauncherUtils.java
index b04607f..ffffa65 100644
--- a/src/com/android/car/carlauncher/AppLauncherUtils.java
+++ b/src/com/android/car/carlauncher/AppLauncherUtils.java
@@ -216,11 +216,6 @@
for (LauncherActivityInfo info : availableActivities) {
ComponentName componentName = info.getComponentName();
String packageName = componentName.getPackageName();
- // If a media service has been added to the map, don't add the activity belonging to
- // the same package.
- if (mediaPackages.contains(packageName)) {
- continue;
- }
if (shouldAdd(componentName, components, blackList)) {
boolean isDistractionOptimized =
isActivityDistractionOptimized(carPackageManager, packageName,