summaryrefslogtreecommitdiffstats
path: root/core/java/android/app/ActivityTransitionState.java
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2014-09-11 08:50:09 -0700
committerGeorge Mount <mount@google.com>2014-09-11 12:23:17 -0700
commit9826f636ad4fe3714d60972acd918e09eb44d971 (patch)
treec3564db7834ea19150477e9157f2996ea8302e25 /core/java/android/app/ActivityTransitionState.java
parent280813a6d9ebeec6d4f327794b7d35128df435e0 (diff)
downloadframeworks_base-9826f636ad4fe3714d60972acd918e09eb44d971.zip
frameworks_base-9826f636ad4fe3714d60972acd918e09eb44d971.tar.gz
frameworks_base-9826f636ad4fe3714d60972acd918e09eb44d971.tar.bz2
Have Activity Transitions activited by a new window attribute.
Bug 17006497 Window content transitions were being enabled by default in the Material Theme so that Activity Transitions could be enabled by default. Unfortunately, this gave the effect that many applications did not want -- the default transition between window content is a fade out/in. Here, a new attribute is added: windowActivityTransitions that is enabled by default in the Material theme and windowContentTransitions is disabled by default in all themes. Change-Id: Iab453d608f00a48ff7ab7f09ce84b52cf5f20294
Diffstat (limited to 'core/java/android/app/ActivityTransitionState.java')
-rw-r--r--core/java/android/app/ActivityTransitionState.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/app/ActivityTransitionState.java b/core/java/android/app/ActivityTransitionState.java
index ad4a22b..bc2e6ca 100644
--- a/core/java/android/app/ActivityTransitionState.java
+++ b/core/java/android/app/ActivityTransitionState.java
@@ -144,7 +144,7 @@ class ActivityTransitionState {
}
public void setEnterActivityOptions(Activity activity, ActivityOptions options) {
- if (activity.getWindow().hasFeature(Window.FEATURE_CONTENT_TRANSITIONS)
+ if (activity.getWindow().hasFeature(Window.FEATURE_ACTIVITY_TRANSITIONS)
&& options != null && mEnterActivityOptions == null
&& mEnterTransitionCoordinator == null
&& options.getAnimationType() == ActivityOptions.ANIM_SCENE_TRANSITION) {
@@ -272,7 +272,7 @@ class ActivityTransitionState {
}
public void startExitOutTransition(Activity activity, Bundle options) {
- if (!activity.getWindow().hasFeature(Window.FEATURE_CONTENT_TRANSITIONS)) {
+ if (!activity.getWindow().hasFeature(Window.FEATURE_ACTIVITY_TRANSITIONS)) {
return;
}
ActivityOptions activityOptions = new ActivityOptions(options);