From b8779b82bb199c5cf812c1626e1ea4cda707e817 Mon Sep 17 00:00:00 2001 From: Kevin Hufnagle Date: Fri, 13 Sep 2019 02:18:44 +0000 Subject: [PATCH] docs: Add condition for hiding synth. activities If an app doesn't have a launcher activity enabled by default, a synthesized activity isn't created for that app. Test: make ds-docs -j32 Bug: 140968734 Change-Id: I2fe8666ee8cde479f404e43c622f03891d96c38f --- core/java/android/content/pm/LauncherApps.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/java/android/content/pm/LauncherApps.java b/core/java/android/content/pm/LauncherApps.java index c74daa8eadfc7..3933e81c732a0 100644 --- a/core/java/android/content/pm/LauncherApps.java +++ b/core/java/android/content/pm/LauncherApps.java @@ -519,9 +519,9 @@ public class LauncherApps { *
  • The app is a system app.
  • *
  • The app doesn't request any permissions. *
  • - *
  • The <application> tag in the app's manifest doesn't contain any child - * elements that represent - * app components.
  • + *
  • The app doesn't have a launcher activity that is enabled by default. A launcher + * activity has an intent containing the ACTION_MAIN action and the + * CATEGORY_LAUNCHER category.
  • * * *

    Additionally, the system hides synthesized activities for some or all apps in the