Browse Source

Fix bug on nougat where the background is black while the activity is displaying

master
Anthony Restaino 8 years ago
parent
commit
36a46002a4
  1. 5
      app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

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

@ -1350,7 +1350,12 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements @@ -1350,7 +1350,12 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
final int color = DrawableUtils.mixColor(interpolatedTime, mCurrentUiColor, finalColor);
if (mShowTabsInDrawer) {
mBackground.setColor(color);
Handlers.MAIN.post(new Runnable() {
@Override
public void run() {
window.setBackgroundDrawable(mBackground);
}
});
} else if (tabBackground != null) {
tabBackground.setColorFilter(color, PorterDuff.Mode.SRC_IN);
}

Loading…
Cancel
Save