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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java

Issue 2896303002: [Home] Check if expand button enabled before setting visibility (Closed)
Patch Set: Created 3 years, 7 months 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 | no next file » | 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/toolbar/BottomToolbarPhone.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java
index 56968d8b0486440ffd3138e678b8c517ab600b69..fdb8f6c71f4e162d2a5f7884e16008840c775e15 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java
@@ -622,9 +622,12 @@ public class BottomToolbarPhone extends ToolbarPhone {
mToolbarButtonsContainer.setVisibility(View.VISIBLE);
mToolbarButtonsContainer.setTranslationX(0);
- mExpandButton.setAlpha(1.f);
- mExpandButton.setVisibility(View.VISIBLE);
- mExpandButton.setTranslationX(0);
+ if (!mUseToolbarHandle) {
+ mExpandButton.setAlpha(1.f);
+ mExpandButton.setVisibility(View.VISIBLE);
+ mExpandButton.setTranslationX(0);
+ }
+
requestLayout();
} else {
mToolbarButtonVisibilityPercent = 0.f;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698