App crashes on adding view to windowsManager - java.lang.IllegalArgumentException: Window type can not be changed after the window is added

前端 未结 0 1426
陌清茗
陌清茗 2020-12-11 18:06

Im trying to display custom view using window manager.

fun Fragment.openAgentOverlay(context: Context, activity: FragmentActivity, viewGroup: ViewGroup ) {
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题