Fix bug on nougat where the background is black while the activity is displaying
This commit is contained in:
parent
8ae8f58cc6
commit
36a46002a4
@ -1350,7 +1350,12 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
|
||||
final int color = DrawableUtils.mixColor(interpolatedTime, mCurrentUiColor, finalColor);
|
||||
if (mShowTabsInDrawer) {
|
||||
mBackground.setColor(color);
|
||||
window.setBackgroundDrawable(mBackground);
|
||||
Handlers.MAIN.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
window.setBackgroundDrawable(mBackground);
|
||||
}
|
||||
});
|
||||
} else if (tabBackground != null) {
|
||||
tabBackground.setColorFilter(color, PorterDuff.Mode.SRC_IN);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user