DO NOT MERGE Remove long press for media apps am: b367fa1cd6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Car/Launcher/+/19931406
Change-Id: I1655b64a145402950428f21b55ed36fcaa2cb82a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/src/com/android/car/carlauncher/AppLauncherUtils.java b/src/com/android/car/carlauncher/AppLauncherUtils.java
index 3b4eda0..0d637bf 100644
--- a/src/com/android/car/carlauncher/AppLauncherUtils.java
+++ b/src/com/android/car/carlauncher/AppLauncherUtils.java
@@ -261,15 +261,7 @@
carMediaManager);
}
},
- contextArg -> {
- // getLaunchIntentForPackage looks for a main activity in the category
- // Intent.CATEGORY_INFO, then Intent.CATEGORY_LAUNCHER, and returns null
- // if neither are found
- Intent packageLaunchIntent =
- packageManager.getLaunchIntentForPackage(packageName);
- AppLauncherUtils.launchApp(contextArg,
- packageLaunchIntent != null ? packageLaunchIntent : intent);
- });
+ /* alternateLaunchCallback */ null);
launchablesMap.put(componentName, appMetaData);
}
}
@@ -298,7 +290,7 @@
info.getBadgedIcon(0),
isDistractionOptimized,
contextArg -> AppLauncherUtils.launchApp(contextArg, intent),
- null);
+ /* alternateLaunchCallback */ null);
launchablesMap.put(componentName, appMetaData);
}
}
@@ -342,7 +334,7 @@
Log.i(TAG, "Successfully enabled package [" + packageName + "]");
AppLauncherUtils.launchApp(contextArg, intent);
},
- null);
+ /* alternateLaunchCallback */ null);
launchablesMap.put(componentName, appMetaData);
}
}