Skip to content

Commit 6f0d961

Browse files
committed
Improve activity background
Set root background for the content frame.
1 parent 860ebc8 commit 6f0d961

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dynamic-support/src/main/java/com/pranavpandey/android/dynamic/support/activity/DynamicActivity.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,7 @@ protected void onAdjustElevation() {
298298
public void setWindowBackground(@ColorInt int color) {
299299
super.setWindowBackground(color);
300300

301-
Dynamic.setBackgroundColor(getFrameContent(),
302-
DynamicTheme.getInstance().get().isTranslucent()
303-
? Color.TRANSPARENT : getBackgroundColor());
301+
Dynamic.setRootBackground(getFrameContent(), getBackgroundColor());
304302
}
305303

306304
@Override

0 commit comments

Comments
 (0)