Skip to content

initParams中的type应该做一下适配 #4

@LongAgoLong

Description

@LongAgoLong

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions