OSDN Git Service

Temporary fix for Folders in battery saver mode.
authorJon Miranda <jonmiranda@google.com>
Wed, 15 Mar 2017 15:11:09 +0000 (08:11 -0700)
committerJon Miranda <jonmiranda@google.com>
Wed, 15 Mar 2017 15:11:09 +0000 (08:11 -0700)
In battery saver mode, the Folder opens where it appears
the final values of the Animators are not being set.

Bug: 36157561
Bug: 36246234
Change-Id: I8dd58044f5f5ac66f8a8476a77d9899447a973eb

src/com/android/launcher3/folder/Folder.java

index 3d2ffb4..af2a179 100644 (file)
@@ -621,6 +621,12 @@ public class Folder extends AbstractFloatingView implements DragSource, View.OnC
 
                 onCompleteRunnable.run();
                 mContent.setFocusOnFirstChild();
+
+                // Temporary fix b/36246234
+                setTranslationX(0f);
+                setTranslationY(0f);
+                mContent.setAlpha(1f);
+                mFooter.setAlpha(1f);
             }
         });