From 6bbc0805dee3504ed005e7bd2ed9a6a0d5ffaeee Mon Sep 17 00:00:00 2001 From: Anthony Restaino Date: Sun, 27 Sep 2015 12:45:47 -0400 Subject: [PATCH] Fixed bug where tab and toolbar colors were not in sync when color mode got switched on --- .../java/acr/browser/lightning/activity/BrowserActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java b/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java index 0f304af..4221af7 100644 --- a/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java +++ b/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java @@ -622,9 +622,11 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements mColorMode &= !mDarkTheme; if (!isIncognito() && !mColorMode && !mDarkTheme && mWebpageBitmap != null) { changeToolbarBackground(mWebpageBitmap, null); + mTabAdapter.notifyDataSetChanged(); } else if (!isIncognito() && mCurrentView != null && !mDarkTheme && mCurrentView.getFavicon() != null) { changeToolbarBackground(mCurrentView.getFavicon(), null); + mTabAdapter.notifyDataSetChanged(); } if (mFullScreen) {