summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/allapps
diff options
context:
space:
mode:
authorJon Miranda <jonmiranda@google.com>2017-05-04 11:47:53 -0700
committerJon Miranda <jonmiranda@google.com>2017-05-11 12:32:28 -0700
commit2d89ea84530559e2002a3a4009a50bac1e568507 (patch)
treee15ac6f357eb6a911700e8cb781ced50e9b03684 /src/com/android/launcher3/allapps
parente37d2b9f322d5a654f6089b90141a087ec484d72 (diff)
downloadandroid_packages_apps_Trebuchet-2d89ea84530559e2002a3a4009a50bac1e568507.tar.gz
android_packages_apps_Trebuchet-2d89ea84530559e2002a3a4009a50bac1e568507.tar.bz2
android_packages_apps_Trebuchet-2d89ea84530559e2002a3a4009a50bac1e568507.zip
Fade in background scrim when resuming from screen off.
This change hides the hard cut off that appears when the Launcher window is transitioning upwards when resuming from when the screen is off. Bug: 36446766 Change-Id: I0c0fe13ee9e08d27b94916d0407ef431d82b8d6a
Diffstat (limited to 'src/com/android/launcher3/allapps')
-rw-r--r--src/com/android/launcher3/allapps/AllAppsBackgroundDrawable.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsBackgroundDrawable.java b/src/com/android/launcher3/allapps/AllAppsBackgroundDrawable.java
index c71bc3166..54c5bd0b2 100644
--- a/src/com/android/launcher3/allapps/AllAppsBackgroundDrawable.java
+++ b/src/com/android/launcher3/allapps/AllAppsBackgroundDrawable.java
@@ -25,6 +25,7 @@ import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.view.Gravity;
+import com.android.launcher3.LauncherAnimUtils;
import com.android.launcher3.R;
/**
@@ -119,7 +120,8 @@ public class AllAppsBackgroundDrawable extends Drawable {
int finalAlphaI = (int) (finalAlpha * 255f);
if (getAlpha() != finalAlphaI) {
mBackgroundAnim = cancelAnimator(mBackgroundAnim);
- mBackgroundAnim = ObjectAnimator.ofInt(this, "alpha", finalAlphaI);
+ mBackgroundAnim = ObjectAnimator.ofInt(this, LauncherAnimUtils.DRAWABLE_ALPHA,
+ finalAlphaI);
mBackgroundAnim.setDuration(duration);
mBackgroundAnim.start();
}