You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Added an explicit if (savedInstanceState == null) check before configuring MapboxEventManager to prevent the multiple initialization and subsequent repeated strings in the User Agent when the device is rotated. Will merge to master and then cherry pick to the release-ios-3.2.0-android-4.0.0 branch.
@bleege
Changes should be reviewed before going on to the release branch?
While the savedInstanceState==null check solves it for most use-cases it will not for all:
Having maps in multiple activities in one application
User doesn't override onSaveInstanceState and thus not having a savedState when recreating.
User shows 2 Mapviews in one screen.
The fix in d33cee7 works around the issue, it doesn't solve the real issue of having a malformed user agent. When you cal initialise on a Singleton it should always produce the same outcome.
Good catch @tobrun! I've just added a state check to userAgent that will further ensure that it only gets set once. Can you 👀 to make sure that it addresses the concerns that you're thinking about?
Activity
bleege commentedon Mar 15, 2016
Good catch @camilleanne. I'll fix this.
bleege commentedon Mar 18, 2016
Initial inspection seems to indicate a regression due to #4263 and specifically b372bb2d823a397fbfa98317d8c581de93063065.
bleege commentedon Mar 18, 2016
Also appears to be related to #2816 and 94c5c2e.
initialise()may be being called multiple times due to rotation that the previous solo null check on savedInstanceState was being used to avoid./cc @tobrun
[android] #4328 - Make Telemetry start only when savedInstanceState i…
bleege commentedon Mar 18, 2016
Added an explicit
if (savedInstanceState == null)check before configuring MapboxEventManager to prevent the multiple initialization and subsequent repeated strings in the User Agent when the device is rotated. Will merge tomasterand then cherry pick to therelease-ios-3.2.0-android-4.0.0branch.[android] #4328 - Make Telemetry start only when savedInstanceState i…
bleege commentedon Mar 18, 2016
Merged and cherry picked!
/cc @jfirebaugh
tobrun commentedon Mar 21, 2016
@bleege
Changes should be reviewed before going on to the release branch?
While the
savedInstanceState==nullcheck solves it for most use-cases it will not for all:The fix in d33cee7 works around the issue, it doesn't solve the real issue of having a malformed user agent. When you cal initialise on a Singleton it should always produce the same outcome.
[android] #4328 - Adding check of userAgent to see if it's still in i…
bleege commentedon Mar 21, 2016
Good catch @tobrun! I've just added a state check to
userAgentthat will further ensure that it only gets set once. Can you 👀 to make sure that it addresses the concerns that you're thinking about?[android] #4328 - Adding check of userAgent to see if it's still in i…
[android] #4328 - Adding check of userAgent to see if it's still in i…
bleege commentedon Mar 21, 2016
Merged to
mastervia 16a58e8 and cherry picked torelease-ios3.2.0-android-4.0.0./cc @jfirebaugh