| Index: chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java
|
| index 46e722b1627c3f917417f14930b8e49b768ae57a..cf4409fb538e210d9b46eede93f352f366f2c116 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java
|
| @@ -503,6 +503,16 @@ public class ContextualSearchPanel extends OverlayPanel {
|
| getPeekPromoControl().onUpdateFromExpandToMaximize(percentage);
|
| }
|
|
|
| + @Override
|
| + protected void updatePanelForOrientationChange() {
|
| + // TODO(pedrosimonetti): find a better way of resizing the promo upon rotation.
|
| + // Destroys the Promo view so it can be properly resized. Once the Promo starts
|
| + // using the ViewResourceInflater, we could probably just call invalidate.
|
| + destroyPromoView();
|
| +
|
| + super.updatePanelForOrientationChange();
|
| + }
|
| +
|
| // ============================================================================================
|
| // ContextualSearchBarControl
|
| // ============================================================================================
|
|
|