diff options
author | Kenny Guy <kennyguy@google.com> | 2014-04-25 20:48:32 +0100 |
---|---|---|
committer | Kenny Guy <kennyguy@google.com> | 2014-04-25 21:21:55 +0100 |
commit | 86a6430e526efc9656c539f9d7e5dea34219ef44 (patch) | |
tree | 07bb691243b6c810959caf657b87bdbdf02df08d | |
parent | 50ec7cbf9f77a46a4cafbfb3795d5b12c28785ff (diff) | |
download | frameworks_base-86a6430e526efc9656c539f9d7e5dea34219ef44.zip frameworks_base-86a6430e526efc9656c539f9d7e5dea34219ef44.tar.gz frameworks_base-86a6430e526efc9656c539f9d7e5dea34219ef44.tar.bz2 |
Provide access to ActivityInfo.name from LauncherActivityInfo
Change-Id: Ia34900f3e232b59f3879dbb3cb3131498023b8ac
-rw-r--r-- | api/current.txt | 1 | ||||
-rw-r--r-- | core/java/android/content/pm/LauncherActivityInfo.java | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index 81362f1..2a7432e 100644 --- a/api/current.txt +++ b/api/current.txt @@ -7735,6 +7735,7 @@ package android.content.pm { method public long getFirstInstallTime(); method public android.graphics.drawable.Drawable getIcon(int); method public java.lang.CharSequence getLabel(); + method public java.lang.String getName(); method public android.os.UserHandle getUser(); } 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. |