DragPointView icon indicating copy to clipboard operation
DragPointView copied to clipboard

initParams中的type应该做一下适配

Open LongAgoLong opened this issue 7 years ago • 1 comments

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

LongAgoLong avatar Nov 05 '18 09:11 LongAgoLong

还要申请悬浮窗权限

LongAgoLong avatar Nov 05 '18 09:11 LongAgoLong