[Home] Fix blank AppMenu when battery saver on

Bug: 764459
Change-Id: I44557977bd822cef80e760672ff407c24dd0d38f
Reviewed-on: https://chromium-review.googlesource.com/664354
Commit-Queue: Becky Zhou <huayinz@chromium.org>
Reviewed-by: Theresa <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#501714}
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java b/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java
index 4014e1c..ad7b699 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java
@@ -371,6 +371,9 @@
             animation.setStartDelay(startDelay);
         } else {
             animation.playTogether(ObjectAnimator.ofFloat(view, View.ALPHA, 0.f, 1.f));
+            // Start delay is set to make sure disabling the animation in battery saver mode does
+            // not cause the view to stay at alpha 0 on Android O.
+            animation.setStartDelay(ENTER_ITEM_BASE_DELAY_MS);
         }
         animation.setDuration(ENTER_ITEM_DURATION_MS);
         animation.setInterpolator(BakedBezierInterpolator.FADE_IN_CURVE);