android maps stop responding after resuming fragment

前端 未结 3 1832
悲&欢浪女
悲&欢浪女 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:19

    Do you see anything in your logcat? I've had some issues like this before, and I believe it was related to the old map fragment's View not being removed from its parent ViewGroup before creating a new instance of it. This resulted in errors regarding a duplicate fragment.

    Try removing all views from your flMapContainer before you create the new instance of the SupportMapFragment.

提交回复
热议问题