Skip to content

Commit

Permalink
1. 修复某些情况下,在魅族MX6机型上,设置背景变暗导致pop所在的Activity变透明
Browse files Browse the repository at this point in the history
  • Loading branch information
JingleDingDang committed Jul 1, 2017
1 parent 8f5c684 commit 9fd0232
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ private PopupWindow build(){
mWindow = activity.getWindow();
WindowManager.LayoutParams params = mWindow.getAttributes();
params.alpha = alpha;
mWindow.addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
mWindow.setAttributes(params);
}

Expand Down

0 comments on commit 9fd0232

Please sign in to comment.