From b93a88095bab0d7cec3ba6cfa2989422fa4236f0 Mon Sep 17 00:00:00 2001 From: Sean Stout Date: Wed, 11 Nov 2020 16:17:23 -0800 Subject: [PATCH] Add hidden API to retrieve ActivityInfo This API will be used by Exo to determine whether the Activity supports only portrait or landscape. Bug: 172927807 Test: make Change-Id: I290b051b645e2bfb9eff9b615b44a08fe439ceca --- core/java/android/content/pm/LauncherActivityInfo.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/java/android/content/pm/LauncherActivityInfo.java b/core/java/android/content/pm/LauncherActivityInfo.java index 7c48bdfb87ea8..fbe13d3c4744f 100644 --- a/core/java/android/content/pm/LauncherActivityInfo.java +++ b/core/java/android/content/pm/LauncherActivityInfo.java @@ -128,6 +128,16 @@ public class LauncherActivityInfo { return mInternal.getActivityInfo().flags; } + /** + * Returns the ActivityInfo of the activity. + * + * @return Activity Info + * @hide + */ + public ActivityInfo getActivityInfo() { + return mInternal.getActivityInfo(); + } + /** * Returns the application info for the appliction this activity belongs to. * @return