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

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

Issue 2809003006: 🏠 Fix coloring issues in status bar (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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheet.java » ('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/ChromeTabbedActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
index 1f510187aba03f52850549630a5397c056530e6b..047466667ad2eeee479b80c1634030e1344c6bac 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
@@ -1843,15 +1843,7 @@ public class ChromeTabbedActivity extends ChromeActivity implements OverviewMode
// If Chrome Home is enabled, the super of this function is not called because it only
// performs unnecessary transformations on the theme color.
if (getBottomSheet() != null) {
- color = ApiCompatibilityUtils.getColor(getResources(), R.color.default_primary_color);
- getBottomSheet().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
-
- // Special case the incognito NTP and the tab switcher.
- if ((tab != null && NewTabPage.isNTPUrl(tab.getUrl()) && tab.isIncognito())
- || isInOverviewMode()) {
- color = Color.BLACK;
- }
- ApiCompatibilityUtils.setStatusBarColor(getWindow(), color);
+ getBottomSheet().setStatusBarColor(getWindow());
return;
}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheet.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698