Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Ls removed location engine.activate() from location examples - #326

Merged
langsmith merged 5 commits into
masterfrom
ls-removed-locationEngine.activate()-from-location-examples
May 9, 2017
Merged

langsmith merged 5 commits into
masterfrom
ls-removed-locationEngine.activate()-from-location-examples

Conversation

@langsmith

Copy link
Copy Markdown
Contributor

Fixes #248

@langsmith
langsmith requested a review from cammace May 3, 2017 21:59
// Get the location engine object for later use.
LocationEngine locationEngine = LocationSource.getLocationEngine(this);
locationEngine.activate();
locationEngine.requestLocationUpdates();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this line can also be removed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

For some reason, the example breaks when requestLocationUpdates() is removed. That's why I left it in there.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh, actually I'll try it now that #321 (review) has landed

@langsmith langsmith May 4, 2017 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yea, works after merging master back in.

activate(); and requestLocationUpdates(); have both been removed. Should be good to go...

Langston added 3 commits May 4, 2017 13:41
…location-examples

# Conflicts:
#
MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/lo
cation/BasicUserLocation.java
#
MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/lo
cation/CustomizeUserLocationActivity.java
@langsmith
langsmith merged commit 826a83e into master May 9, 2017
@langsmith
langsmith deleted the ls-removed-locationEngine.activate()-from-location-examples branch May 9, 2017 04:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants