Skip to content

Commit

Permalink
fix: Bigkoo#690 底部弹框遮盖虚拟导航栏的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
j1453 committed Apr 9, 2019
1 parent d9ba689 commit 30a97f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void onClick(View view) {
//如果只是要显示在屏幕的下方
//decorView是activity的根View,包含 contentView 和 titleView
if (mPickerOptions.decorView == null) {
mPickerOptions.decorView = (ViewGroup) ((Activity) context).getWindow().getDecorView();
mPickerOptions.decorView = (ViewGroup) ((Activity) context).getWindow().getDecorView().findViewById(android.R.id.content);
}
//将控件添加到decorView中
rootView = (ViewGroup) layoutInflater.inflate(R.layout.layout_basepickerview, mPickerOptions.decorView, false);
Expand Down

0 comments on commit 30a97f2

Please sign in to comment.