Index: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java |
index c65a4800d1be24e0d3f6ba9d7237dad5c0432dff..e7439c22eb5fb5e5a8caf23bb8a26871716b3b25 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java |
@@ -508,6 +508,12 @@ public class ContextualSearchManager extends ContextualSearchObservable |
} |
} |
+ // Note: whether the sprite should be animated or not needs to be set before the call to |
+ // peekPanel(). If the sprite should be animated, the animation will begin after the panel |
+ // finishes peeking. If it should not be animated, the icon will be drawn right away. |
+ mSearchPanel.setShouldAnimateIconSprite(mPolicy.shouldAnimateSearchProviderIcon( |
+ mSelectionController.getSelectionType(), mSearchPanel.isShowing())); |
+ |
// Note: now that the contextual search has properly started, set the promo involvement. |
if (mPolicy.isPromoAvailable()) { |
mIsShowingPromo = true; |