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

[android] Use the new camera api instead of hardcoded values #4128

Merged
merged 1 commit into from
Feb 26, 2016

Conversation

zugaldia
Copy link
Member

Fixes #4124

* byte[] utils
*/

public static byte[] serialize(Object obj) throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we're removing these utility methods, I think we should revisit #4085 (comment) and consider just using byte[] OfflineRegion::getMetadata().

The TestApp code is probably a good example. The double .getMetadata().getMetadata() looks pretty awkward to me.

String json = new String(offlineRegion.getMetadata().getMetadata(), CustomMetadata.CHARSET);

@zugaldia @tobrun WDYT?

I think this is better:

String json = new String(offlineRegion.getMetadata(), CustomMetadata.CHARSET);

Copy link
Member Author

Choose a reason for hiding this comment

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

Ticketed: #4139.

@friedbunny friedbunny added the Android Mapbox Maps SDK for Android label Mar 10, 2016
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.

4 participants