summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherStateTransitionAnimation.java
diff options
context:
space:
mode:
authorJon Miranda <jonmiranda@google.com>2017-03-15 11:01:29 -0700
committerJon Miranda <jonmiranda@google.com>2017-03-15 11:28:59 -0700
commit08d8bb9cde705ef66561fb2dbed0af7af2632812 (patch)
tree6e4f9a4537a9814fb900ec01f3a1425a242c4c56 /src/com/android/launcher3/LauncherStateTransitionAnimation.java
parenta431fbb85090b180673c38b6d88f492a805282d6 (diff)
downloadandroid_packages_apps_Trebuchet-08d8bb9cde705ef66561fb2dbed0af7af2632812.tar.gz
android_packages_apps_Trebuchet-08d8bb9cde705ef66561fb2dbed0af7af2632812.tar.bz2
android_packages_apps_Trebuchet-08d8bb9cde705ef66561fb2dbed0af7af2632812.zip
Temporary fix for Widgets in battery saver mode.
Bug: 36246234 Bug: 36240579 Change-Id: Iced0ea87333011aef1dbdadd0036427207e377d9
Diffstat (limited to 'src/com/android/launcher3/LauncherStateTransitionAnimation.java')
-rw-r--r--src/com/android/launcher3/LauncherStateTransitionAnimation.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher3/LauncherStateTransitionAnimation.java b/src/com/android/launcher3/LauncherStateTransitionAnimation.java
index 39c466db8..1acc3b80a 100644
--- a/src/com/android/launcher3/LauncherStateTransitionAnimation.java
+++ b/src/com/android/launcher3/LauncherStateTransitionAnimation.java
@@ -334,6 +334,12 @@ public class LauncherStateTransitionAnimation {
// This can hold unnecessary references to views.
cleanupAnimation();
pCb.onTransitionComplete();
+
+ revealView.setAlpha(1f);
+ revealView.setTranslationX(0f);
+ revealView.setTranslationY(0f);
+ contentView.setAlpha(1f);
+ contentView.setTranslationY(0f);
}
});