summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorTodd Kennedy <toddke@google.com>2020-04-29 12:33:31 -0700
committerTodd Kennedy <toddke@google.com>2020-04-29 12:33:31 -0700
commitae3af93daa86d79cb6ac4ccc15eb06ecc78fb98e (patch)
treee3b45ef3414afdd608b7aa249926c63060c81b80 /core/java
parenta2b1a3fd6196cb2dd890bba0d34f5445cc9d36a5 (diff)
Update public documentation.
Looks like we haven't returned `null` in years. Fixes: 149837263 Test: None. Documentation only. Change-Id: I6900458d0b69152a54034e572a6b994e8e6585bd
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/content/pm/PackageManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java
index 6a5e6ca289b3..2a11fffea4eb 100644
--- a/core/java/android/content/pm/PackageManager.java
+++ b/core/java/android/content/pm/PackageManager.java
@@ -5951,9 +5951,9 @@ public abstract class PackageManager {
/**
* Return the label to use for this application.
*
- * @return Returns the label associated with this application, or null if
- * it could not be found for any reason.
- * @param info The application to get the label of.
+ * @return Returns a {@link CharSequence} containing the label associated with
+ * this application, or its name the item does not have a label.
+ * @param info The {@link ApplicationInfo} of the application to get the label of.
*/
@NonNull
public abstract CharSequence getApplicationLabel(@NonNull ApplicationInfo info);