From dde24269c1eecb3ade2f625f4777492d4ef71526 Mon Sep 17 00:00:00 2001 From: Amaury Medeiros Date: Tue, 3 Jun 2014 20:06:41 -0300 Subject: [PATCH] Minor javadoc improvements for PackageManager. - Removed duplicated use of the word "the". - Changed @return and @param explanation of getApplicationEnabledSetting, which should get the enabled state of an application and not just one component. Change-Id: Ide07ec84ceb5b9b5caa28efa9ba838a40ee7b514 Signed-off-by: Amaury Medeiros --- core/java/android/content/pm/PackageManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java index 8ce7e972e4cb7..d8c79065bcdcd 100644 --- a/core/java/android/content/pm/PackageManager.java +++ b/core/java/android/content/pm/PackageManager.java @@ -494,7 +494,7 @@ public abstract class PackageManager { * Installation return code: this is passed to the {@link IPackageInstallObserver} by * {@link #installPackage(android.net.Uri, IPackageInstallObserver, int)} if * the package being installed contains native code, but none that is - * compatible with the the device's CPU_ABI. + * compatible with the device's CPU_ABI. * @hide */ public static final int INSTALL_FAILED_CPU_ABI_INCOMPATIBLE = -16; @@ -3120,7 +3120,7 @@ public abstract class PackageManager { /** - * Return the the enabled setting for a package component (activity, + * Return the enabled setting for a package component (activity, * receiver, service, provider). This returns the last value set by * {@link #setComponentEnabledSetting(ComponentName, int, int)}; in most * cases this value will be {@link #COMPONENT_ENABLED_STATE_DEFAULT} since @@ -3158,14 +3158,14 @@ public abstract class PackageManager { int newState, int flags); /** - * Return the the enabled setting for an application. This returns + * Return the enabled setting for an application. This returns * the last value set by * {@link #setApplicationEnabledSetting(String, int, int)}; in most * cases this value will be {@link #COMPONENT_ENABLED_STATE_DEFAULT} since * the value originally specified in the manifest has not been modified. * - * @param packageName The component to retrieve. - * @return Returns the current enabled state for the component. May + * @param packageName The package name of the application to retrieve. + * @return Returns the current enabled state for the application. May * be one of {@link #COMPONENT_ENABLED_STATE_ENABLED}, * {@link #COMPONENT_ENABLED_STATE_DISABLED}, or * {@link #COMPONENT_ENABLED_STATE_DEFAULT}. The last one means the