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 bbacc3ad4becc7285cb40fa63bb94266cbd32e10..3d9bbcaeeff234a06047375e6fc0d0bbdbb8de56 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 |
@@ -12,8 +12,8 @@ import android.os.Handler; |
import org.chromium.base.ActivityState; |
import org.chromium.base.ApiCompatibilityUtils; |
import org.chromium.base.VisibleForTesting; |
- |
import org.chromium.chrome.R; |
+import org.chromium.chrome.browser.ChromeActivity; |
import org.chromium.chrome.browser.compositor.LayerTitleCache; |
import org.chromium.chrome.browser.compositor.bottombar.OverlayContentProgressObserver; |
import org.chromium.chrome.browser.compositor.bottombar.OverlayPanel; |
@@ -406,6 +406,15 @@ public class ContextualSearchPanel extends OverlayPanel { |
|| super.shouldHideAndroidBrowserControls(); |
} |
+ @Override |
+ public void setChromeActivity(ChromeActivity activity) { |
+ super.setChromeActivity(activity); |
+ |
+ if (mActivity.getBottomSheet() == null) return; |
+ |
+ addBarHandle(mActivity.getToolbarManager().getToolbar().getHeight()); |
+ } |
+ |
// ============================================================================================ |
// Animation Handling |
// ============================================================================================ |