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

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

Issue 2849993002: [Home] Fix toolbar color when switching tab models (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/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java ('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 9d99441ada4b12aa8e14eac1cd214d315eb37187..c0d4eaae337cfc06d1db46967a22047f05a4ea15 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
@@ -696,8 +696,11 @@ public class BottomSheet
mContentSwapAnimatorSet.playTogether(animators);
mContentSwapAnimatorSet.start();
- // If the existing content is null, end the animation immediately.
- if (mSheetContent == null) mContentSwapAnimatorSet.end();
+ // If the existing content is null or the tab switcher assets are showing, end the animation
+ // immediately.
+ if (mSheetContent == null || mDefaultToolbarView.isInTabSwitcherMode()) {
+ mContentSwapAnimatorSet.end();
+ }
}
/**
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/toolbar/BottomToolbarPhone.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698