am cb649050: am e5e95588: Merge "add ComponentInfo.isEnabled()" into honeycomb

* commit 'cb649050a9af1df45df5e99f965307e6684ac56d':
  add ComponentInfo.isEnabled()
This commit is contained in:
Joe Onorato
2011-01-10 18:06:22 -08:00
committed by Android Git Automerger
2 changed files with 18 additions and 0 deletions

View File

@@ -58398,6 +58398,17 @@
visibility="public"
>
</method>
<method name="isEnabled"
return="boolean"
abstract="false"
native="false"
synchronized="false"
static="false"
final="false"
deprecated="not deprecated"
visibility="public"
>
</method>
<field name="applicationInfo"
type="android.content.pm.ApplicationInfo"
transient="false"

View File

@@ -98,6 +98,13 @@ public class ComponentInfo extends PackageItemInfo {
}
return name;
}
/**
* Return whether this component and its enclosing application are enabled.
*/
public boolean isEnabled() {
return enabled && applicationInfo.enabled;
}
/**
* Return the icon resource identifier to use for this component. If