Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Avoid recursive loading, add library loading to peer objects. #13748

Merged
merged 3 commits into from
Jan 17, 2019

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Jan 17, 2019

This PR does addresses two items:

  • avoid recursive loading and the printed warning
  • add library loading to classes that can be used as peer objects

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Jan 17, 2019
@tobrun tobrun added this to the android-v7.1.0 milestone Jan 17, 2019
@tobrun tobrun self-assigned this Jan 17, 2019
if (!loaded) {
System.loadLibrary(name);
}
loaded = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move the point of setting this flag (and the check) to the static load method so that it's set for custom library loaders as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this I exposed the loaded field as protected, I didn't want to enforce logic on the user but on the other end not seeing a use-case for not checking the flag for all loaders.

@tobrun tobrun merged commit f0392e0 into master Jan 17, 2019
@tobrun tobrun deleted the tvn-libraryloader branch March 22, 2019 17:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants