diff options
author | Michael Jurka <mikejurka@google.com> | 2013-09-26 15:29:57 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2013-10-01 11:56:43 -0700 |
commit | 7267fa58693549894999db17359ce26f8bc7b4a7 (patch) | |
tree | 55f38a256e92c26119d3323badddf31605819390 /src/com/android/launcher3/LauncherViewPropertyAnimator.java | |
parent | e269ca4298eb4be7c4e07bfb67cfb7dcf38c274f (diff) | |
download | android_packages_apps_Trebuchet-7267fa58693549894999db17359ce26f8bc7b4a7.tar.gz android_packages_apps_Trebuchet-7267fa58693549894999db17359ce26f8bc7b4a7.tar.bz2 android_packages_apps_Trebuchet-7267fa58693549894999db17359ce26f8bc7b4a7.zip |
Make some changes for transparent system bars
-Move transparent bars from just GEL to Launcher3
-When wallpaper strip animates, render it under the nav bar
-Disable rotation of wallpaper picker on phones
Bug: 10814785
Bug: 10852650
Bug: 10852554
Change-Id: I9efeccbc4ad1933689266a5dede201ccfd34acf4
Diffstat (limited to 'src/com/android/launcher3/LauncherViewPropertyAnimator.java')
-rw-r--r-- | src/com/android/launcher3/LauncherViewPropertyAnimator.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/com/android/launcher3/LauncherViewPropertyAnimator.java b/src/com/android/launcher3/LauncherViewPropertyAnimator.java index 8a9c35dda..4cafbbfa6 100644 --- a/src/com/android/launcher3/LauncherViewPropertyAnimator.java +++ b/src/com/android/launcher3/LauncherViewPropertyAnimator.java @@ -35,7 +35,8 @@ public class LauncherViewPropertyAnimator extends Animator implements AnimatorLi ALPHA, START_DELAY, DURATION, - INTERPOLATOR + INTERPOLATOR, + WITH_LAYER } EnumSet<Properties> mPropertiesToSet = EnumSet.noneOf(Properties.class); ViewPropertyAnimator mViewPropertyAnimator; @@ -223,6 +224,9 @@ public class LauncherViewPropertyAnimator extends Animator implements AnimatorLi if (mPropertiesToSet.contains(Properties.INTERPOLATOR)) { mViewPropertyAnimator.setInterpolator(mInterpolator); } + if (mPropertiesToSet.contains(Properties.WITH_LAYER)) { + mViewPropertyAnimator.withLayer(); + } mViewPropertyAnimator.setListener(this); mViewPropertyAnimator.start(); LauncherAnimUtils.cancelOnDestroyActivity(this); @@ -263,4 +267,9 @@ public class LauncherViewPropertyAnimator extends Animator implements AnimatorLi mAlpha = value; return this; } + + public LauncherViewPropertyAnimator withLayer() { + mPropertiesToSet.add(Properties.WITH_LAYER); + return this; + } } |