Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86a6430e authored by Kenny Guy's avatar Kenny Guy
Browse files

Provide access to ActivityInfo.name from LauncherActivityInfo

Change-Id: Ia34900f3e232b59f3879dbb3cb3131498023b8ac
parent 50ec7cbf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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();
  }
+8 −0
Original line number Diff line number Diff line
@@ -120,6 +120,14 @@ public class LauncherActivityInfo {
        return mFirstInstallTime;
    }

    /**
     * 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.