diff options
| author | Joe Onorato <joeo@google.com> | 2011-01-10 17:33:18 -0800 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-10 17:33:18 -0800 |
| commit | e5e9558871df227a09420fed6f16c33e6af0e3e7 (patch) | |
| tree | 2bc720746ff9dad37d23f80f9411d6fb3860d0e7 /core/java | |
| parent | 58818ab5b5dd14f5b40602cd07114de78c110b58 (diff) | |
| parent | a85a91573af97a76ab08ffd5f8558b73283e1faa (diff) | |
Merge "add ComponentInfo.isEnabled()" into honeycomb
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/content/pm/ComponentInfo.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/content/pm/ComponentInfo.java b/core/java/android/content/pm/ComponentInfo.java index f16c4efdfaf4..28124775fb95 100644 --- a/core/java/android/content/pm/ComponentInfo.java +++ b/core/java/android/content/pm/ComponentInfo.java @@ -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 |
