Skip to content

Commit 31587d4

Browse files
committed
Fix #695, fix black background when closing SwipebackActivity with Animations or Transitions
1 parent d91dffc commit 31587d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fragmentation_swipeback/src/main/java/me/yokeyword/fragmentation_swipeback/core/SwipeBackActivityDelegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public boolean swipeBackPriority() {
5858

5959
private void onActivityCreate() {
6060
mActivity.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
61-
mActivity.getWindow().getDecorView().setBackgroundDrawable(null);
61+
mActivity.getWindow().getDecorView().setBackgroundColor(Color.TRANSPARENT);
6262
mSwipeBackLayout = new SwipeBackLayout(mActivity);
6363
ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
6464
mSwipeBackLayout.setLayoutParams(params);

0 commit comments

Comments
 (0)