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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheet.java

Issue 2846883003: [Home] Fix solid-color tab switcher toolbar (Closed)
Patch Set: Created 3 years, 8 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 | « chrome/android/java/res/layout/bottom_control_container.xml ('k') | 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/widget/bottomsheet/BottomSheet.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheet.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheet.java
index ede7e626e835e6cc31653b71692edf5e9def8100..19bde1f61102e1f4e35b2f403587c107f3b458d6 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheet.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheet.java
@@ -678,6 +678,7 @@ public class BottomSheet
o.onSheetContentChanged(content);
}
updateHandleTint();
+ mToolbarHolder.setBackgroundColor(Color.TRANSPARENT);
mContentSwapAnimatorSet = null;
}
});
@@ -688,6 +689,10 @@ public class BottomSheet
animators.add(getViewTransitionAnimator(
content.getContentView(), oldContent, mBottomSheetContentContainer, true));
+ // Temporarily make the background of the toolbar holder a solid color so the transition
+ // doesn't appear to show a hole in the toolbar.
+ mToolbarHolder.setBackgroundColor(
+ ApiCompatibilityUtils.getColor(getResources(), R.color.default_primary_color));
mContentSwapAnimatorSet.playTogether(animators);
mContentSwapAnimatorSet.start();
« no previous file with comments | « chrome/android/java/res/layout/bottom_control_container.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698