-
Notifications
You must be signed in to change notification settings - Fork 55
initParams中的type应该做一下适配 #4
Copy link
Copy link
Open
Description
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
windowParams.type = WindowManager.LayoutParams.TYPE_TOAST;
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
windowParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY;
}else{
windowParams.type = WindowManager.LayoutParams.TYPE_PHONE;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels