Select to view content in your preferred language

Object is already owned.: Already owned.

686
1
03-18-2022 05:30 AM
SonMinh
Emerging Contributor

I have use navigation drawer with navigation component look like picture

SonMinh_0-1647606253914.png

But when i back from fragment blank to fragment map, it crash app cause by Object is already owned.: Already owned. You can see detail in video. How can i keep state of map when back from from fragment blank?

screen-20220318-192645.mp4
Video Player is loading.
Current Time 0:00
Duration 0:00
Loaded: 0%
Stream Type LIVE
Remaining Time 0:00
 
1x
    • Chapters
    • descriptions off, selected
    • captions off, selected
      (view in My Videos)

      Tags (1)
      0 Kudos
      1 Reply
      RamaChintapalli
      Esri Contributor

      Hi,
      Can you share what your MapFragment's onCreate, onPause, onResume code looks like ? 

      Thanks
      Rama

      0 Kudos