Recevoir les mises à jour des bogues dans l’application
URL copiéePartager l’URL
Bogue
Initiating a fragment containing the map layout view after the app launches, and rotating the device causes the app to crash for ArcGIS Runtime SDKs for Android.
Dernière publication: December 2, 2021ArcGIS Runtime SDK
Numéro d’ID de bogue
BUG-000141674
Envoi
July 23, 2021
Dernière modification
June 5, 2024
S’applique à
ArcGIS Runtime SDK
Version trouvée
100.11
Système d’exploitation
Android
Version du système d’exploitation
11.x
Statut
Will Not Be Addressed
L’équipe de développement a examiné le problème ou la demande et a décidé qu’ils ne seraient pas traités. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
Informations supplémentaires
The Fragment is not handling the orientation changes appropriately. In the Fragment and Activity lifecycles, the dispose method on the MapView is called when the Activity's onDestroy call is made with an orientation change. This is followed by the onCreate method of Fragment which attempts to add a new Fragment with MapView causing the previous Fragment and MapView to be disposed, but the previous Fragment with MapView has not been instantiated yet. Every time the device is rotated, a new Fragment with a MapView is being created and added to the FragmentManager. The previously created fragments are still in the FragmentManager and attempt to instantiate.
Below is an example (one way) of handling orientation changes that ensures the MapView is resumed and the Fragment instance created from the savedInstanceState.
if (savedInstanceState == null) {
val fragment1 = Fragment1()
val button1 = findViewById
ID de bogue: BUG-000141674
Logiciel:
ArcGIS Runtime SDK
Recevoir une notification lorsque le statut d’un bogue change