diff options
author | Dianne Hackborn <hackbod@google.com> | 2009-09-22 11:37:40 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2009-09-22 13:39:34 -0700 |
commit | 9bfb707597898f54722460b48588007b682f3e2a (patch) | |
tree | 2842b0fe78a78b836d652214189eaabdd7892f37 /core/java/android/content/Intent.java | |
parent | c0b8a96d28c55cb51e4f9e1f85c8d3ecf1ff13bf (diff) | |
download | frameworks_base-9bfb707597898f54722460b48588007b682f3e2a.zip frameworks_base-9bfb707597898f54722460b48588007b682f3e2a.tar.gz frameworks_base-9bfb707597898f54722460b48588007b682f3e2a.tar.bz2 |
Various fixes and improvements to window, activity.
- New meta-data you can add to a dock activity to have it launched by the
home key when the device is in that dock.
- Fix a deadlock involving ActivityThread's internal content provider lock.
- New window flag to have a non-secure keyguard entirely dismissed when a
window is displayed.
- New WindowManagerPolicy APIs to allow the policy to tell the system when
a change it makes during layout may cause the wall paper or
overall configuration to change.
- Fix a bug where an application token removed while one of its windows is
animating could cause the animating window to get stuck on screen.
Change-Id: I6d33fd39edd796bb9bdfd9dd7e077b84ca62ea08
Diffstat (limited to 'core/java/android/content/Intent.java')
-rw-r--r-- | core/java/android/content/Intent.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index f6ca50d..5fb5768 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1885,7 +1885,7 @@ public class Intent implements Parcelable { "android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST"; /** * An activity to run when device is inserted into a car dock. - * Used with {@link #ACTION_MAIN} to launch an activity. + * Used with {@link #ACTION_MAIN} to launch an activity. * To monitor dock state, use {@link #ACTION_DOCK_EVENT} instead. */ @SdkConstant(SdkConstantType.INTENT_CATEGORY) @@ -2056,6 +2056,12 @@ public class Intent implements Parcelable { public static final int EXTRA_DOCK_STATE_CAR = 2; /** + * Boolean that can be supplied as meta-data with a dock activity, to + * indicate that the dock should take over the home key when it is active. + */ + public static final String METADATA_DOCK_HOME = "android.dock_home"; + + /** * Used as a parcelable extra field in {@link #ACTION_APP_ERROR}, containing * the bug report. * @@ -3605,7 +3611,7 @@ public class Intent implements Parcelable { } } else { ResolveInfo info = pm.resolveActivity( - this, PackageManager.MATCH_DEFAULT_ONLY); + this, PackageManager.MATCH_DEFAULT_ONLY | flags); if (info != null) { ai = info.activityInfo; } |