summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/WindowManagerPolicy.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-09-04 14:21:19 -0700
committerDianne Hackborn <hackbod@google.com>2009-09-04 14:28:42 -0700
commit25994b4306a256b88d79159106834c9f114e6943 (patch)
treebd6189443ff082f07761f5ace7ad013eba66da86 /core/java/android/view/WindowManagerPolicy.java
parent107039f94888fce212e0965b74971727d2b01b82 (diff)
downloadframeworks_base-25994b4306a256b88d79159106834c9f114e6943.zip
frameworks_base-25994b4306a256b88d79159106834c9f114e6943.tar.gz
frameworks_base-25994b4306a256b88d79159106834c9f114e6943.tar.bz2
Wallpapers: new transitions, hiding when not visible, other cleanup.
This is work on the transitions with wallpapers. There are now new animations specifically for leaving the wallpaper and returning to it, which allow us to have a consistent animation when entering home and returning to it. I also renamed the existing animations across wallpapers, and cleaned up some junk in the various interpolators. This also now hides the wallpaper surface when it is not visible, to get rid of the wallpaper flickers people complained about albeit in a somewhat brutal way. :) (Though really returning us to the previous behavior with the same previous bugs and name back to them not being very visible, yay!) There is are also some bug fixes here and there about managing the wallpaper visibility that this change revealed. Change-Id: I913990a9a81651728122ed2e1101b75ed2c36fcb
Diffstat (limited to 'core/java/android/view/WindowManagerPolicy.java')
-rw-r--r--core/java/android/view/WindowManagerPolicy.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java
index dd4b65f..c40107b 100644
--- a/core/java/android/view/WindowManagerPolicy.java
+++ b/core/java/android/view/WindowManagerPolicy.java
@@ -344,12 +344,18 @@ public interface WindowManagerPolicy {
public final int TRANSIT_TASK_TO_FRONT = 10;
/** A window in an existing task is being put below all other tasks. */
public final int TRANSIT_TASK_TO_BACK = 11;
+ /** A window in a new activity that doesn't have a wallpaper is being
+ * opened on top of one that does, effectively closing the wallpaper. */
+ public final int TRANSIT_WALLPAPER_CLOSE = 12;
+ /** A window in a new activity that does have a wallpaper is being
+ * opened on one that didn't, effectively opening the wallpaper. */
+ public final int TRANSIT_WALLPAPER_OPEN = 13;
/** A window in a new activity is being opened on top of an existing one,
* and both are on top of the wallpaper. */
- public final int TRANSIT_WALLPAPER_ACTIVITY_OPEN = 12;
+ public final int TRANSIT_WALLPAPER_INTRA_OPEN = 14;
/** The window in the top-most activity is being closed to reveal the
* previous activity, and both are on top of he wallpaper. */
- public final int TRANSIT_WALLPAPER_ACTIVITY_CLOSE = 13;
+ public final int TRANSIT_WALLPAPER_INTRA_CLOSE = 15;
/** Screen turned off because of power button */
public final int OFF_BECAUSE_OF_USER = 1;