android maps stop responding after resuming fragment

前端 未结 3 1834
悲&欢浪女
悲&欢浪女 2020-12-21 10:51

Listed below is my basic code for controlling the maps. I do some really advanced stuff later. Everything seems to work perfect, until onResume().

Here

3条回答
  •  心在旅途
    2020-12-21 11:09

    To implement Scott Stanchfield's solution: call cleanFrame() when add/replace another fragment.

    public void cleanFrame(){
    FrameLayout FL = (FrameLayout) thisview.findViewById(R.id.myfragmentcontainer);
       FL.removeAllViewsInLayout();
    }
    

提交回复
热议问题