Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2086)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchBarControl.java

Issue 2518503004: [TTS] Fix Bar text showing blank after startup. (Closed)
Patch Set: Responded to Matt's comments, removed some checks that were not needed. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/android/compositor/layer/contextual_search_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchBarControl.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchBarControl.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchBarControl.java
index 3ebfdf8112b5c7b2ffb41478adeda42e0b088f5f..982d8042a04f183130ae7ae22f63e30bfa68238f 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchBarControl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchBarControl.java
@@ -63,13 +63,15 @@ public class ContextualSearchBarControl
/**
* The opacity of the Bar's Search Context.
+ * This text control may not be initialized until the opacity is set beyond 0.
*/
- private float mSearchBarContextOpacity = 1.f;
+ private float mSearchBarContextOpacity = 0.f;
/**
* The opacity of the Bar's Search Term.
+ * This text control may not be initialized until the opacity is set beyond 0.
*/
- private float mSearchBarTermOpacity = 1.f;
+ private float mSearchBarTermOpacity = 0.f;
// Dimensions used for laying out the search bar.
private final float mTextLayerMinHeight;
« no previous file with comments | « no previous file | chrome/browser/android/compositor/layer/contextual_search_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698