Fixed bug where tab and toolbar colors were not in sync when color mode got switched on

This commit is contained in:
Anthony Restaino 2015-09-27 12:45:47 -04:00
parent e157d45d39
commit 6bbc0805de

View File

@ -622,9 +622,11 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
mColorMode &= !mDarkTheme; mColorMode &= !mDarkTheme;
if (!isIncognito() && !mColorMode && !mDarkTheme && mWebpageBitmap != null) { if (!isIncognito() && !mColorMode && !mDarkTheme && mWebpageBitmap != null) {
changeToolbarBackground(mWebpageBitmap, null); changeToolbarBackground(mWebpageBitmap, null);
mTabAdapter.notifyDataSetChanged();
} else if (!isIncognito() && mCurrentView != null && !mDarkTheme } else if (!isIncognito() && mCurrentView != null && !mDarkTheme
&& mCurrentView.getFavicon() != null) { && mCurrentView.getFavicon() != null) {
changeToolbarBackground(mCurrentView.getFavicon(), null); changeToolbarBackground(mCurrentView.getFavicon(), null);
mTabAdapter.notifyDataSetChanged();
} }
if (mFullScreen) { if (mFullScreen) {