Browse Source

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

master
Anthony Restaino 9 years ago
parent
commit
6bbc0805de
  1. 2
      app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

2
app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

@ -622,9 +622,11 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements @@ -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) {

Loading…
Cancel
Save