Index: chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivityFadingBackgroundView.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivityFadingBackgroundView.java b/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivityFadingBackgroundView.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0f210a514a29ab81094bbe00b94bb04be492885e |
--- /dev/null |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivityFadingBackgroundView.java |
@@ -0,0 +1,26 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+package org.chromium.chrome.browser.searchwidget; |
+ |
+import android.content.Context; |
+import android.util.AttributeSet; |
+ |
+import org.chromium.chrome.browser.widget.FadingBackgroundView; |
+ |
+/** |
+ * The FadingBackgroundView isn't used here, but is still animated by the LocationBarLayout. |
+ * This interferes with the animation we need to show the widget moving to the right place. |
+ */ |
+public class SearchActivityFadingBackgroundView extends FadingBackgroundView { |
+ public SearchActivityFadingBackgroundView(Context context, AttributeSet attrs) { |
+ super(context, attrs); |
+ } |
+ |
+ @Override |
+ public void showFadingOverlay() {} |
+ |
+ @Override |
+ public void hideFadingOverlay(boolean fadeOut) {} |
+} |