diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java index fcb4bcc..1e46cbb 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/MainActivity.java @@ -246,7 +246,7 @@ public class MainActivity extends ActionBarActivity implements GestureDetector.O final Context ctx = this; - locationCallback.setLocationChangedCallback(new StandardLocationListenerCallback() { + locationCallback.addCallback(new StandardLocationListenerCallback() { @Override public void callback(Location location) { double lat = location.getLatitude();