diff --git a/api/current.txt b/api/current.txt index eacc45261261b..231fd3e30982b 100644 --- a/api/current.txt +++ b/api/current.txt @@ -785,8 +785,8 @@ package android { field public static final int largeScreens = 16843398; // 0x1010286 field public static final int largestWidthLimitDp = 16843622; // 0x1010366 field public static final int launchMode = 16842781; // 0x101001d - field public static final int launchTaskBehindBackgroundAnimation = 16843921; // 0x1010491 field public static final int launchTaskBehindSourceAnimation = 16843922; // 0x1010492 + field public static final int launchTaskBehindTargetAnimation = 16843921; // 0x1010491 field public static final int layerType = 16843604; // 0x1010354 field public static final int layout = 16842994; // 0x10100f2 field public static final int layoutAnimation = 16842988; // 0x10100ec @@ -1349,6 +1349,7 @@ package android { field public static final int transitionGroup = 16843803; // 0x101041b field public static final int transitionName = 16843802; // 0x101041a field public static final int transitionOrdering = 16843744; // 0x10103e0 + field public static final int transitionVisibilityMode = 16843900; // 0x101047c field public static final int translateX = 16843866; // 0x101045a field public static final int translateY = 16843867; // 0x101045b field public static final int translationX = 16843554; // 0x1010322 @@ -1385,7 +1386,6 @@ package android { field public static final int viewportHeight = 16843805; // 0x101041d field public static final int viewportWidth = 16843804; // 0x101041c field public static final int visibility = 16842972; // 0x10100dc - field public static final int visibilityMode = 16843900; // 0x101047c field public static final int visible = 16843156; // 0x1010194 field public static final int vmSafeMode = 16843448; // 0x10102b8 field public static final int voiceIcon = 16843908; // 0x1010484 @@ -3773,10 +3773,11 @@ package android.app { public class ActivityOptions { method public static android.app.ActivityOptions makeCustomAnimation(android.content.Context, int, int); - method public static android.app.ActivityOptions makeLaunchTaskBehindAnimation(); + method public static deprecated android.app.ActivityOptions makeLaunchTaskBehindAnimation(); method public static android.app.ActivityOptions makeScaleUpAnimation(android.view.View, int, int, int, int); method public static android.app.ActivityOptions makeSceneTransitionAnimation(android.app.Activity, android.view.View, java.lang.String); method public static android.app.ActivityOptions makeSceneTransitionAnimation(android.app.Activity, android.util.Pair...); + method public static android.app.ActivityOptions makeTaskLaunchBehind(); method public static android.app.ActivityOptions makeThumbnailScaleUpAnimation(android.view.View, android.graphics.Bitmap, int, int); method public android.os.Bundle toBundle(); method public void update(android.app.ActivityOptions); diff --git a/core/java/android/app/ActivityOptions.java b/core/java/android/app/ActivityOptions.java index 4c02314bec1f7..0653ca9d8dff9 100644 --- a/core/java/android/app/ActivityOptions.java +++ b/core/java/android/app/ActivityOptions.java @@ -444,12 +444,17 @@ public class ActivityOptions { * android.R.styleable#AndroidManifestActivity_launchMode launchMode} values of * singleInstance or singleTask. */ - public static ActivityOptions makeLaunchTaskBehindAnimation() { + public static ActivityOptions makeTaskLaunchBehind() { final ActivityOptions opts = new ActivityOptions(); opts.mAnimationType = ANIM_LAUNCH_TASK_BEHIND; return opts; } + @Deprecated + public static ActivityOptions makeLaunchTaskBehindAnimation() { + return makeTaskLaunchBehind(); + } + /** @hide */ public boolean getLaunchTaskBehind() { return mAnimationType == ANIM_LAUNCH_TASK_BEHIND; diff --git a/core/java/android/transition/Visibility.java b/core/java/android/transition/Visibility.java index 81c69d18e82d7..0b0255221a059 100644 --- a/core/java/android/transition/Visibility.java +++ b/core/java/android/transition/Visibility.java @@ -84,7 +84,7 @@ public abstract class Visibility extends Transition { public Visibility(Context context, AttributeSet attrs) { super(context, attrs); TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.VisibilityTransition); - int mode = a.getInt(R.styleable.VisibilityTransition_visibilityMode, 0); + int mode = a.getInt(R.styleable.VisibilityTransition_transitionVisibilityMode, 0); a.recycle(); if (mode != 0) { setMode(mode); @@ -97,7 +97,7 @@ public abstract class Visibility extends Transition { * * @param mode The behavior supported by this transition, a combination of * {@link #MODE_IN} and {@link #MODE_OUT}. - * @attr ref android.R.styleable#VisibilityTransition_visibilityMode + * @attr ref android.R.styleable#VisibilityTransition_transitionVisibilityMode */ public void setMode(int mode) { if ((mode & ~(MODE_IN | MODE_OUT)) != 0) { @@ -111,7 +111,7 @@ public abstract class Visibility extends Transition { * * Returns whether appearing and/or disappearing Views are supported. A combination of * {@link #MODE_IN} and {@link #MODE_OUT}. - * @attr ref android.R.styleable#VisibilityTransition_visibilityMode + * @attr ref android.R.styleable#VisibilityTransition_transitionVisibilityMode */ public int getMode() { return mMode; diff --git a/core/res/res/anim/launch_task_behind_background.xml b/core/res/res/anim/launch_task_behind_target.xml similarity index 100% rename from core/res/res/anim/launch_task_behind_background.xml rename to core/res/res/anim/launch_task_behind_target.xml diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index cc8d7cf30fec6..e88fe0a14fbbb 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -1952,7 +1952,7 @@ - + @@ -5531,7 +5531,7 @@ resource are available in addition to the specific attributes of Fade described here. --> - @@ -5567,7 +5567,7 @@ - + diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index f2466f78c3267..07874c78fc387 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -2211,7 +2211,7 @@ - + @@ -2232,7 +2232,7 @@ - + diff --git a/core/res/res/values/styles.xml b/core/res/res/values/styles.xml index 8fc9bacdf1114..bb0be487a6f41 100644 --- a/core/res/res/values/styles.xml +++ b/core/res/res/values/styles.xml @@ -82,7 +82,7 @@ please see styles_device_defaults.xml. @anim/activity_close_exit @anim/task_open_enter @anim/task_open_exit - @anim/launch_task_behind_background + @anim/launch_task_behind_target @anim/launch_task_behind_source @anim/task_close_enter @anim/task_close_exit diff --git a/services/core/java/com/android/server/wm/AppTransition.java b/services/core/java/com/android/server/wm/AppTransition.java index f6ec86db5478e..4dc76de6e1192 100644 --- a/services/core/java/com/android/server/wm/AppTransition.java +++ b/services/core/java/com/android/server/wm/AppTransition.java @@ -46,7 +46,7 @@ import static com.android.internal.R.styleable.WindowAnimation_activityCloseEnte import static com.android.internal.R.styleable.WindowAnimation_activityCloseExitAnimation; import static com.android.internal.R.styleable.WindowAnimation_taskOpenEnterAnimation; import static com.android.internal.R.styleable.WindowAnimation_taskOpenExitAnimation; -import static com.android.internal.R.styleable.WindowAnimation_launchTaskBehindBackgroundAnimation; +import static com.android.internal.R.styleable.WindowAnimation_launchTaskBehindTargetAnimation; import static com.android.internal.R.styleable.WindowAnimation_launchTaskBehindSourceAnimation; import static com.android.internal.R.styleable.WindowAnimation_taskCloseEnterAnimation; import static com.android.internal.R.styleable.WindowAnimation_taskCloseExitAnimation; @@ -814,7 +814,7 @@ public class AppTransition implements Dump { case TRANSIT_TASK_OPEN_BEHIND: animAttr = enter ? WindowAnimation_launchTaskBehindSourceAnimation - : WindowAnimation_launchTaskBehindBackgroundAnimation; + : WindowAnimation_launchTaskBehindTargetAnimation; } a = animAttr != 0 ? loadAnimationAttr(lp, animAttr) : null; if (DEBUG_APP_TRANSITIONS || DEBUG_ANIM) Slog.v(TAG,