From ae3af93daa86d79cb6ac4ccc15eb06ecc78fb98e Mon Sep 17 00:00:00 2001 From: Todd Kennedy Date: Wed, 29 Apr 2020 12:33:31 -0700 Subject: [PATCH] Update public documentation. Looks like we haven't returned `null` in years. Fixes: 149837263 Test: None. Documentation only. Change-Id: I6900458d0b69152a54034e572a6b994e8e6585bd --- core/java/android/content/pm/PackageManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index 6a5e6ca289b35..2a11fffea4eb4 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);