Skip to content

Commit

Permalink
Improve activity background
Browse files Browse the repository at this point in the history
Set root background for the content frame.
  • Loading branch information
pranavpandey committed Aug 30, 2022
1 parent 860ebc8 commit 6f0d961
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,7 @@ protected void onAdjustElevation() {
public void setWindowBackground(@ColorInt int color) {
super.setWindowBackground(color);

Dynamic.setBackgroundColor(getFrameContent(),
DynamicTheme.getInstance().get().isTranslucent()
? Color.TRANSPARENT : getBackgroundColor());
Dynamic.setRootBackground(getFrameContent(), getBackgroundColor());
}

@Override
Expand Down

0 comments on commit 6f0d961

Please sign in to comment.