DO NOT MERGE Remove long press for media apps
Remove media app long click action since it no longer
need to access itself. This fixes Talkback announcing
long-clickable for video apps.
Bug: 244601395
Test: manual - visual inspect long click no longer
opening media apps.
Change-Id: I5bd3d7836bcc275a5a4b7a23e7507d33f2bbac4d
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);
}
}