Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android 8.0 报错 #2

Open
ZhetengDashen opened this issue Jul 30, 2018 · 1 comment
Open

android 8.0 报错 #2

ZhetengDashen opened this issue Jul 30, 2018 · 1 comment

Comments

@ZhetengDashen
Copy link

android 8.0 报错

@mingancai
Copy link

mingancai commented Jul 29, 2020

8.0及以上版本### windowmanager已修改,addview中的LayoutParamstype需要改为TYPE_APPLICATION_OVERLAY,这样既可解决问题!

if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O){
smallWindowParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants