Skip to content

Commit

Permalink
Merge pull request #9 from JingleDingDang/master
Browse files Browse the repository at this point in the history
1. 修复某些情况下,在魅族MX6机型上,设置背景变暗导致pop所在的Activity变透明
  • Loading branch information
pinguo-zhouwei committed Jul 1, 2017
2 parents 8f5c684 + 9fd0232 commit c487c49
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 c487c49

Please sign in to comment.