summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/pm
diff options
context:
space:
mode:
authorKenny Guy <kennyguy@google.com>2014-04-25 20:48:32 +0100
committerKenny Guy <kennyguy@google.com>2014-04-25 21:21:55 +0100
commit86a6430e526efc9656c539f9d7e5dea34219ef44 (patch)
tree07bb691243b6c810959caf657b87bdbdf02df08d /core/java/android/content/pm
parent50ec7cbf9f77a46a4cafbfb3795d5b12c28785ff (diff)
downloadframeworks_base-86a6430e526efc9656c539f9d7e5dea34219ef44.zip
frameworks_base-86a6430e526efc9656c539f9d7e5dea34219ef44.tar.gz
frameworks_base-86a6430e526efc9656c539f9d7e5dea34219ef44.tar.bz2
Provide access to ActivityInfo.name from LauncherActivityInfo
Change-Id: Ia34900f3e232b59f3879dbb3cb3131498023b8ac
Diffstat (limited to 'core/java/android/content/pm')
-rw-r--r--core/java/android/content/pm/LauncherActivityInfo.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/content/pm/LauncherActivityInfo.java b/core/java/android/content/pm/LauncherActivityInfo.java
index 92b9146..6bf3638 100644
--- a/core/java/android/content/pm/LauncherActivityInfo.java
+++ b/core/java/android/content/pm/LauncherActivityInfo.java
@@ -121,6 +121,14 @@ public class LauncherActivityInfo {
}
/**
+ * Returns the name for the acitivty from android:name in the manifest.
+ * @return the name from android:name for the acitivity.
+ */
+ public String getName() {
+ return mActivityInfo.name;
+ }
+
+ /**
* Returns the activity icon with badging appropriate for the profile.
* @param density Optional density for the icon, or 0 to use the default density.
* @return A badged icon for the activity.